fix: Respect REBUILD=N for legacy Windows media (#1978)

This commit is contained in:
Kroese
2026-07-26 02:55:50 +02:00
committed by GitHub
parent 30d9858c7d
commit 2b7d7bf902
+17 -16
View File
@@ -696,23 +696,24 @@ setMachine() {
local iso="$2" local iso="$2"
local dir="$3" local dir="$3"
local desc="$4" local desc="$4"
local legacy=""
case "${id,,}" in if ! disabled "$REBUILD"; then
"win9"* )
ETFS="[BOOT]/Boot-1.44M.img" ;; case "${id,,}" in
"win2k"* ) "win2k"* ) legacy="2k" ;;
if ! legacyInstall "$iso" "$dir" "$desc" "2k"; then "winxp"* ) legacy="xp" ;;
error "Failed to prepare $desc ISO!" && return 1 "win2003"* ) legacy="2k3" ;;
fi ;; esac
"winxp"* )
if ! legacyInstall "$iso" "$dir" "$desc" "xp"; then if [ -n "$legacy" ]; then
error "Failed to prepare $desc ISO!" && return 1 if ! legacyInstall "$iso" "$dir" "$desc" "$legacy"; then
fi ;; error "Failed to prepare $desc ISO!"
"win2003"* ) return 1
if ! legacyInstall "$iso" "$dir" "$desc" "2k3"; then fi
error "Failed to prepare $desc ISO!" && return 1 fi
fi ;;
esac fi
case "${id,,}" in case "${id,,}" in
"win9"* ) "win9"* )