From 99ac4035c7ee48af3538ed79fdf6be1eef722a9e Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 23 Jul 2026 23:53:13 +0200 Subject: [PATCH] fix: Handle stop signals during xorriso extraction (#1944) --- src/answer.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/answer.sh b/src/answer.sh index c67b57cc..cb016910 100644 --- a/src/answer.sh +++ b/src/answer.sh @@ -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