trigger error handler as soon as possible
authorPatrick Schleizer <adrelanos@whonix.org>
Wed, 25 Oct 2023 16:48:00 +0000 (12:48 -0400)
committerPatrick Schleizer <adrelanos@whonix.org>
Thu, 7 Dec 2023 18:51:55 +0000 (13:51 -0500)
https://github.com/grml/grml-debootstrap/issues/224#issuecomment-1779673194

chroot-script
grml-debootstrap

index 2c29465..8a35f29 100755 (executable)
@@ -804,7 +804,7 @@ trap signal_handler HUP INT QUIT TERM
      custom_scripts upgrade_system remove_apt_cache services \
      remove_chrootmirror; do
      if stage $i ; then
-       $i || exit 1
+       $i
        stage $i 'done'
      fi
   done
index d00dc0c..97409bc 100755 (executable)
@@ -2151,7 +2151,7 @@ for i in format_efi_partition prepare_vm mkfs tunefs \
          preparechroot execute_pre_scripts chrootscript execute_post_scripts \
          remove_configs umount_chroot grub_install umount_target fscktool ; do
     if stage "${i}" ; then
-      "$i" || bailout 2 "$i"
+      "$i"
       stage "${i}" 'done'
       rm -f "${STAGES}/${i}"
     fi