From d3d37cda63b300f3ffe84d3075099c41e925bc87 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 25 Jan 2024 02:31:41 +0100 Subject: [PATCH] feat: Support older Windows versions --- src/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/install.sh b/src/install.sh index 1f16bf1..4c0bcd2 100644 --- a/src/install.sh +++ b/src/install.sh @@ -106,6 +106,10 @@ finishInstall() { rm -f "$STORAGE/windows.boot" cp /run/version "$STORAGE/windows.ver" + if [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then + touch "$STORAGE/windows.bios" + fi + rm -rf "$TMP" return 0 } @@ -434,6 +438,11 @@ buildImage() { ###################################### if ! startInstall; then + + if [ -f "$STORAGE/windows.bios" ]; then + BOOT_MODE="windows_legacy" + fi + rm -rf "$TMP" return 0 fi