From 27944cdc4a2a10241936b011fa52755c1e658e7d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 4 Nov 2021 09:05:53 +0000 Subject: [PATCH] installer: Setup efivarfs when possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Tremer Reviewed-by: Peter Müller --- src/installer/dracut-module/module-setup.sh | 1 + src/installer/dracut-module/run-installer.sh | 5 +++++ 2 files changed, 6 insertions(+) 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 -- 2.39.5