]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Setup efivarfs when possible
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Nov 2021 09:05:53 +0000 (09:05 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Fri, 19 Nov 2021 06:08:53 +0000 (07:08 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
src/installer/dracut-module/module-setup.sh
src/installer/dracut-module/run-installer.sh

index 29ec4c0d7f58344b1154e0e0b6ae03fa4eb9610c..9c3a5d03eaf317073f33e230c4e63d4505c02acc 100755 (executable)
@@ -23,6 +23,7 @@ install() {
 
     # Kernel drivers
     instmods =drivers/hid
+    instmods efivarfs
 
     # Network drivers
     instmods =drivers/net/ethernet =drivers/net/usb
index 33c8c4b10b7fe54a5e9d7cc5532ad662cf72dbe2..755de1d3a2b9798ea8f44bcd13b535368f0a06eb 100644 (file)
@@ -8,6 +8,11 @@ if grep -q "installer.unattended" /proc/cmdline; then
        unattended=1
 fi
 
+# Mount efivarfs on EFI systems
+if [ -d "/sys/firmware/efi" ]; then
+       mount -t efivarfs efivarfs /sys/firmware/efi/efivars
+fi
+
 # Enable Unicode
 echo -en '\033%G' && kbd_mode -u