From 2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 8 Feb 2022 16:33:59 +0100 Subject: core-services/00-pseudofs: mount /sys/firmware/efi/efivars when appropriate --- core-services/00-pseudofs.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core-services') diff --git a/core-services/00-pseudofs.sh b/core-services/00-pseudofs.sh index 88d4255..0a1be84 100644 --- a/core-services/00-pseudofs.sh +++ b/core-services/00-pseudofs.sh @@ -10,6 +10,10 @@ mountpoint -q /dev/pts || mount -o mode=0620,gid=5,nosuid,noexec -n -t devpts de mountpoint -q /dev/shm || mount -o mode=1777,nosuid,nodev -n -t tmpfs shm /dev/shm mountpoint -q /sys/kernel/security || mount -n -t securityfs securityfs /sys/kernel/security +if [ -d /sys/firmware/efi/efivars ]; then + mountpoint -q /sys/firmware/efi/efivars || mount -o nosuid,noexec,nodev -t efivarfs efivarfs /sys/firmware/efi/efivars +fi + if [ -z "$VIRTUALIZATION" ]; then _cgroupv1="" _cgroupv2="" -- cgit 1.4.1