From: Michael Prokop Date: Wed, 25 Oct 2023 08:04:20 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/pr/226' X-Git-Tag: v0.105~16 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=2999d61efa6841d22024fc6c5fde16dc44db8a20;hp=-c;p=grml-debootstrap.git Merge remote-tracking branch 'origin/pr/226' --- 2999d61efa6841d22024fc6c5fde16dc44db8a20 diff --combined chroot-script index 48ce326,6655cb3..3c69f00 --- a/chroot-script +++ b/chroot-script @@@ -11,6 -11,7 +11,7 @@@ # error_handler {{{ if [ "$REPORT_TRAP_ERR" = "yes" ] || [ "$FAIL_TRAP_ERR" = "yes" ]; then + set -e set -E set -o pipefail trap "error_handler" ERR @@@ -653,7 -654,7 +654,7 @@@ available_ids() echo "${ids}" } -# helper function to report corresponding /dev/disk/by-id/… for a given device name, +# helper function to report corresponding /dev/disk/by-id/ for a given device name, # based on GRUB's postinst script device_to_id() { local id diff --combined grml-debootstrap index e3404d4,6ed8511..8994542 --- a/grml-debootstrap +++ b/grml-debootstrap @@@ -31,6 -31,7 +31,7 @@@ last bash command: $last_bash_command } if [ "$REPORT_TRAP_ERR" = "yes" ] || [ "$FAIL_TRAP_ERR" = "yes" ]; then + set -e set -E set -o pipefail trap "error_handler" ERR @@@ -1347,7 -1348,7 +1348,7 @@@ mkfs() bailout 1 else einfo "Changing disk uuid for $TARGET to fixed (non-random) value $DISK_IDENTIFIER using tune2fs" - tune2fs "$TARGET" -U "$DISK_IDENTIFIER" + tune2fs "$TARGET" -U "$DISK_IDENTIFIER"