From: Michael Tremer Date: Thu, 4 Nov 2021 09:05:53 +0000 (+0000) Subject: installer: Setup efivarfs when possible X-Git-Tag: v2.27-core162~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27944cdc4a2a10241936b011fa52755c1e658e7d;p=ipfire-2.x.git installer: Setup efivarfs when possible Signed-off-by: Michael Tremer Reviewed-by: Peter Müller --- diff --git a/src/installer/dracut-module/module-setup.sh b/src/installer/dracut-module/module-setup.sh index 29ec4c0d7f..9c3a5d03ea 100755 --- a/src/installer/dracut-module/module-setup.sh +++ b/src/installer/dracut-module/module-setup.sh @@ -23,6 +23,7 @@ install() { # Kernel drivers instmods =drivers/hid + instmods efivarfs # Network drivers instmods =drivers/net/ethernet =drivers/net/usb diff --git a/src/installer/dracut-module/run-installer.sh b/src/installer/dracut-module/run-installer.sh index 33c8c4b10b..755de1d3a2 100644 --- a/src/installer/dracut-module/run-installer.sh +++ b/src/installer/dracut-module/run-installer.sh @@ -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