public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH 1/3] mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems
@ 2021-11-04  9:05 Michael Tremer
  2021-11-04  9:05 ` [PATCH 2/3] installer: Setup efivarfs when possible Michael Tremer
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Michael Tremer @ 2021-11-04  9:05 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 src/initscripts/system/mountkernfs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/initscripts/system/mountkernfs b/src/initscripts/system/mountkernfs
index 264da24c4..1f1426077 100644
--- a/src/initscripts/system/mountkernfs
+++ b/src/initscripts/system/mountkernfs
@@ -39,6 +39,11 @@ case "${1}" in
 			mount -t cgroup2 none /sys/fs/cgroup || failed=1
 		fi
 
+		if ! mountpoint /sys/firmware/efi/efivars &>/dev/null && [ -d "/sys/firmware/efi" ]; then
+			boot_mesg -n " /sys/firmware/efi/efivars" ${NORMAL}
+			mount -t efivarfs efivarfs /sys/firmware/efi/efivars || failed=1
+		fi
+
 		# create folder for dhcpcd changeroot
 		mkdir -p /run/dhcpcd/chroot
 		chown dhcpcd:dhcpcd /run/dhcpcd/chroot
-- 
2.20.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-11-19 11:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04  9:05 [PATCH 1/3] mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems Michael Tremer
2021-11-04  9:05 ` [PATCH 2/3] installer: Setup efivarfs when possible Michael Tremer
2021-11-17 20:09   ` Peter Müller
2021-11-04  9:05 ` [PATCH 3/3] installer: Bind-mount /sys/firmware/efi/efivars into chroot Michael Tremer
2021-11-17 20:11   ` Peter Müller
2021-11-18 11:09     ` Michael Tremer
2021-11-19  6:30       ` Peter Müller
2021-11-19 11:10         ` Michael Tremer
2021-11-17 20:10 ` [PATCH 1/3] mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems Peter Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox