public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 1/3] mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems
Date: Thu, 04 Nov 2021 09:05:52 +0000	[thread overview]
Message-ID: <20211104090554.6510-1-michael.tremer@ipfire.org> (raw)

[-- 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


             reply	other threads:[~2021-11-04  9:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  9:05 Michael Tremer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211104090554.6510-1-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox