mountkernfs: Mount /sys/firmware/efi/efivars on EFI systems

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Michael Tremer
2021-11-04 09:05:52 +00:00
committed by Peter Müller
parent 0b2aa5173d
commit 76050bdcf2

View File

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