feat: Read WIM metadata directly from ISO (#2036)

This commit is contained in:
Kroese
2026-08-03 05:33:01 +02:00
committed by GitHub
parent b1e2cc47ac
commit cd8af5af51
4 changed files with 550 additions and 71 deletions
+22 -8
View File
@@ -39,16 +39,30 @@ startWindows() {
else
if ! extractImage "$ISO" "$dir" "$VERSION"; then
removeIso "$ISO" && return 74
fi
local detect_rc=0
detectIsoImage "$ISO" || detect_rc=$?
extracted=1
case "$detect_rc" in
if ! detectImage "$dir"; then
abortInstall "$dir" "$ISO" "$boot" || return 76
return 0
fi
0 ) ;;
1 )
if ! extractImage "$ISO" "$dir" "$VERSION"; then
removeIso "$ISO" && return 74
fi
extracted=1
if ! detectImage "$dir"; then
abortInstall "$dir" "$ISO" "$boot" || return 76
return 0
fi ;;
* )
abortInstall "$dir" "$ISO" "$boot" || return 76
return 0 ;;
esac
fi