X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=e59b829a175896046fbf03f676e3e26029e0548d;hp=8104df12063f3048a961a64d293f95a512cb8570;hb=1ca3ec59aeb6d70c7621bebe7ba2bf2fd38bbbf1;hpb=86f83aa4b5047fafa74ef003d2da70bf1eeb50a7 diff --git a/chroot-script b/chroot-script index 8104df1..e59b829 100755 --- a/chroot-script +++ b/chroot-script @@ -604,9 +604,6 @@ efi_setup() { echo "Invoking efibootmgr" efibootmgr || return 1 - - umount /sys/firmware/efi/efivars &>/dev/null || true - } # grub configuration/installation {{{ @@ -725,6 +722,8 @@ finalize() { [ -n "$POLICYRCD" ] && rm -f /usr/sbin/policy-rc.d + umount /sys/firmware/efi/efivars &>/dev/null || true + umount /sys >/dev/null 2>/dev/null || true umount /proc >/dev/null 2>/dev/null || true }