From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer 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 Message-ID: <20211104090554.6510-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5835897239479939598==" List-Id: --===============5835897239479939598== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- src/initscripts/system/mountkernfs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/initscripts/system/mountkernfs b/src/initscripts/system/moun= tkernfs 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=3D1 fi =20 + if ! mountpoint /sys/firmware/efi/efivars &>/dev/null && [=C2=A0-d "/sys/f= irmware/efi" ]; then + boot_mesg -n " /sys/firmware/efi/efivars" ${NORMAL} + mount -t efivarfs efivarfs /sys/firmware/efi/efivars || failed=3D1 + fi + # create folder for dhcpcd changeroot mkdir -p /run/dhcpcd/chroot chown dhcpcd:dhcpcd /run/dhcpcd/chroot --=20 2.20.1 --===============5835897239479939598==--