feat: Support older Windows versions

This commit is contained in:
Kroese 2024-01-25 02:31:41 +01:00 committed by GitHub
parent 23c9529440
commit d3d37cda63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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