mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 15:48:59 +01:00
fix: Fail on answer file generation errors (#2100)
This commit is contained in:
+6
-5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user