Skip to content

Commit

Permalink
trigger error handler as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 7, 2023
1 parent ed17c95 commit c59878b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chroot-script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c59878b

Please sign in to comment.