mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
fix: Handle stop signals during xorriso extraction (#1944)
This commit is contained in:
+9
-3
@@ -1319,15 +1319,21 @@ legacyPrepare() {
|
|||||||
rm -f "$dir/$ETFS" || return 1
|
rm -f "$dir/$ETFS" || return 1
|
||||||
rm -rf "$tmp" || return 1
|
rm -rf "$tmp" || return 1
|
||||||
|
|
||||||
if ! LC_ALL=C xorriso \
|
local rc
|
||||||
|
|
||||||
|
LC_ALL=C xorriso \
|
||||||
-no_rc \
|
-no_rc \
|
||||||
-osirrox on \
|
-osirrox on \
|
||||||
-indev "$iso" \
|
-indev "$iso" \
|
||||||
-extract_boot_images "$tmp" >/dev/null 2>&1; then
|
-extract_boot_images "$tmp" >/dev/null 2>&1 || {
|
||||||
|
rc=$?
|
||||||
rm -rf "$tmp" || true
|
rm -rf "$tmp" || true
|
||||||
|
|
||||||
|
(( rc > 128 )) && exit "$rc"
|
||||||
|
|
||||||
error "Failed to extract boot image from $desc ISO!"
|
error "Failed to extract boot image from $desc ISO!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
}
|
||||||
|
|
||||||
if [ ! -s "$image" ]; then
|
if [ ! -s "$image" ]; then
|
||||||
rm -rf "$tmp" || true
|
rm -rf "$tmp" || true
|
||||||
|
|||||||
Reference in New Issue
Block a user