fix: Fail on answer file generation errors (#2100)

This commit is contained in:
Kroese
2026-08-07 07:26:08 +02:00
committed by GitHub
parent 5f16a000d6
commit 84eabc07fb
+6 -5
View File
@@ -49,9 +49,7 @@ selectWindowsImage() {
if resolveImage "$VERSION"; then if resolveImage "$VERSION"; then
if ! setImage; then if ! setImage; then
skipUnattended "$dir" "$iso" "$boot" || return 70 return 70
handled=1
return 0
fi fi
if ! needsExtraction "$DETECTED" "$iso"; then if ! needsExtraction "$DETECTED" "$iso"; then
@@ -689,8 +687,11 @@ setImage() {
setXML "" && return 0 setXML "" && return 0
enabled "$MANUAL" && return 0 enabled "$MANUAL" && return 0
# A missing answer file is a supported manual-install path, not a hard media # If a usable source template exists, setXML failed while preparing it.
# failure. # That is an installation error and must not fall back to manual setup.
hasAnswerFile "$DETECTED" && return 1
# A genuinely missing answer file is a supported manual-install path.
MANUAL="Y" MANUAL="Y"
local desc local desc