From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH 1/3] mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems Date: Wed, 17 Nov 2021 20:10:21 +0000 Message-ID: In-Reply-To: <20211104090554.6510-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1292862077511371414==" List-Id: --===============1292862077511371414== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Peter M=C3=BCller > Signed-off-by: Michael Tremer > --- > src/initscripts/system/mountkernfs | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/src/initscripts/system/mountkernfs b/src/initscripts/system/mo= untkernfs > 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= /firmware/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 --===============1292862077511371414==--