1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

fix: Handle stop signals during xorriso extraction (#1944)

This commit is contained in:
Kroese
2026-07-23 23:53:13 +02:00
committed by GitHub
parent b656a8a57f
commit 99ac4035c7
+9 -3
View File
@@ -1319,15 +1319,21 @@ legacyPrepare() {
rm -f "$dir/$ETFS" || return 1
rm -rf "$tmp" || return 1
if ! LC_ALL=C xorriso \
local rc
LC_ALL=C xorriso \
-no_rc \
-osirrox on \
-indev "$iso" \
-extract_boot_images "$tmp" >/dev/null 2>&1; then
-extract_boot_images "$tmp" >/dev/null 2>&1 || {
rc=$?
rm -rf "$tmp" || true
(( rc > 128 )) && exit "$rc"
error "Failed to extract boot image from $desc ISO!"
return 1
fi
}
if [ ! -s "$image" ]; then
rm -rf "$tmp" || true