fix: Read legacy boot load size before image preparation (#1986)

This commit is contained in:
Kroese
2026-07-26 06:32:26 +02:00
committed by GitHub
parent 5b080ac6c8
commit 0d0dd7be87
2 changed files with 42 additions and 27 deletions
+6
View File
@@ -781,6 +781,12 @@ prepareImage() {
setMachine "$DETECTED" "$iso" "$dir" "$desc" || return 1
disabled "$REBUILD" && return 0
if [[ "${BOOT_MODE,,}" == "windows_legacy" &&
"${DETECTED,,}" != "win9"* ]]; then
getBootLoadSize "$iso" "$desc" || return 1
fi
skipVersion "$DETECTED" && return 0
if [[ "${BOOT_MODE,,}" == "windows_legacy" ]]; then