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 -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