]> git.proxmox.com Git - pve-installer.git/blobdiff - unconfigured.sh
also umount efivars and minor improvements
[pve-installer.git] / unconfigured.sh
index d16ea61f0df4279bba0e50990d009f932ad33717..cf592594f93a63c267efd0b2279a221f9e04fe92 100755 (executable)
@@ -41,6 +41,7 @@ real_reboot() {
     umount -l -n /target >/dev/null 2>&1
     umount -l -n /dev
     umount -l -n /run
+    [ -d /sys/firmware/efi/efivars ] && umount -l -n /sys/firmware/efi/efivars
     umount -l -n /sys
     umount -l -n /proc
 
@@ -65,7 +66,7 @@ mount -n -t proc proc /proc
 mount -n -t sysfs sysfs /sys
 if [ -d /sys/firmware/efi ]; then
     echo "EFI boot mode detected, mounting efivars filesystem"
-    mount -nt efivarfs none /sys/firmware/efi/efivars
+    mount -n -t efivarfs efivarfs /sys/firmware/efi/efivars
 fi
 mount -n -t tmpfs tmpfs /run