summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-02-08 16:33:59 +0100
committerMichael Aldridge <aldridge.mac@gmail.com>2022-03-25 23:51:51 -0500
commit2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84 (patch)
treefb3837029ad30ed929bc34ef0fba7ed73a687839
parent87044318e9acb741e1b74767f30cc4ae802ed398 (diff)
downloadrunit-void-2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84.tar.gz
runit-void-2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84.tar.xz
runit-void-2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84.zip
core-services/00-pseudofs: mount /sys/firmware/efi/efivars when appropriate
-rw-r--r--core-services/00-pseudofs.sh4
1 files changed, 4 insertions, 0 deletions
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=""