feat: Support older Windows versions

This commit is contained in:
Kroese 2024-01-25 01:31:28 +01:00 committed by GitHub
parent 82ad512dca
commit a85d62bf5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,6 +266,7 @@ extractImage() {
warn "failed to locate file 'efisys_noprompt.bin' in ISO image, $FB" warn "failed to locate file 'efisys_noprompt.bin' in ISO image, $FB"
fi fi
BOOT_MODE="windows_legacy"
return 1 return 1
fi fi
@ -342,6 +343,7 @@ selectXML() {
warn "failed to detect Windows version from image, $FB" warn "failed to detect Windows version from image, $FB"
else else
if [[ "${name,,}" == "windows 7" ]]; then if [[ "${name,,}" == "windows 7" ]]; then
BOOT_MODE="windows_legacy"
warn "detected Windows 7 image, $FB" warn "detected Windows 7 image, $FB"
else else
warn "failed to detect Windows version from string '$name', $FB" warn "failed to detect Windows version from string '$name', $FB"