From: Patrick Schleizer Date: Wed, 25 Oct 2023 16:48:00 +0000 (-0400) Subject: trigger error handler as soon as possible X-Git-Tag: v0.106~7^2~13 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=c59878b7597b82fc8f94ba5312c01e0a94075a4f trigger error handler as soon as possible https://github.com/grml/grml-debootstrap/issues/224#issuecomment-1779673194 --- diff --git a/chroot-script b/chroot-script index 2c29465..8a35f29 100755 --- a/chroot-script +++ b/chroot-script @@ -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 diff --git a/grml-debootstrap b/grml-debootstrap index d00dc0c..97409bc 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -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