]> git.proxmox.com Git - pve-installer.git/blobdiff - unconfigured.sh
html: tree wide trailing whitespace cleanup
[pve-installer.git] / unconfigured.sh
index fbf9d45575b6ca06e6cc14e9b028e693b2ce9ba5..cf592594f93a63c267efd0b2279a221f9e04fe92 100755 (executable)
@@ -40,6 +40,8 @@ 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
 
@@ -62,6 +64,11 @@ export SYSTEMD_IGNORE_CHROOT=1
 
 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 -n -t efivarfs efivarfs /sys/firmware/efi/efivars
+fi
+mount -n -t tmpfs tmpfs /run
 
 parse_cmdline