trap "error_handler" ERR
# }}}
+bash -n /etc/debootstrap/config
# shellcheck source=config
. /etc/debootstrap/config || exit 1
+bash -n /etc/debootstrap/variables
# shellcheck source=tests/shellcheck-stub-debootstrap-variables
. /etc/debootstrap/variables || exit 1
local rootfs_mount_options=""
if [ -z "${FILESYSTEM}" ] ; then
- FILESYSTEM="$(blkid -o value -s TYPE /dev/disk/by-uuid/"${TARGET_UUID}")"
+ FILESYSTEM="$(blkid -o value -s TYPE /dev/disk/by-uuid/"${TARGET_UUID}")" || true
fi
case "${FILESYSTEM}" in
mkdir -p /boot/efi
echo "Mounting $EFI on /boot/efi"
- mount "$EFI" /boot/efi || return 1
+ mount "$EFI" /boot/efi
# if efivarfs kernel module is loaded, but efivars isn't,
# then we need to mount efivarfs for efibootmgr usage
fi
echo "Invoking efibootmgr"
- efibootmgr || return 1
+ efibootmgr
}
# grub configuration/installation {{{
return 0
fi
- efi_setup || return 1
+ efi_setup
if [ -n "$EFI" ] ; then
GRUB_PACKAGE=grub-efi-amd64
initrd grub_install passwords \
custom_scripts upgrade_system remove_apt_cache services \
remove_chrootmirror; do
- if stage $i ; then
- $i && stage $i 'done' || exit 1
+ if stage "$i" ; then
+ "$i"
+ stage "$i" 'done'
fi
done
# always execute the finalize stage: