mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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:
committed by
Peter Müller
parent
0b2aa5173d
commit
76050bdcf2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user