diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-02-08 16:33:59 +0100 |
---|---|---|
committer | Michael Aldridge <aldridge.mac@gmail.com> | 2022-03-25 23:51:51 -0500 |
commit | 2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84 (patch) | |
tree | fb3837029ad30ed929bc34ef0fba7ed73a687839 /core-services | |
parent | 87044318e9acb741e1b74767f30cc4ae802ed398 (diff) | |
download | runit-void-2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84.tar.gz runit-void-2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84.tar.xz runit-void-2b97bc31e88bd40496da3cb1dcd1a86c75b6fc84.zip |
core-services/00-pseudofs: mount /sys/firmware/efi/efivars when appropriate
Diffstat (limited to 'core-services')
-rw-r--r-- | core-services/00-pseudofs.sh | 4 |
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="" |