X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=e59b829a175896046fbf03f676e3e26029e0548d;hb=b45ae94113e04d6faf3cf82a39c3cf6f799b18fb;hp=8104df12063f3048a961a64d293f95a512cb8570;hpb=d91d9f3ef6d33d5432a936741d2ee41de1621281;p=grml-debootstrap.git 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 }