2022-08-25 13:13:16 -04:00
|
|
|
#!/bin/execlineb -P
|
2021-02-26 12:46:11 -05:00
|
|
|
foreground {
|
|
|
|
if -n { mountpoint -q /sys }
|
|
|
|
mount -t sysfs sys /sys -o nosuid,noexec,nodev
|
|
|
|
}
|
|
|
|
foreground {
|
|
|
|
if -n { mountpoint -q /sys/kernel/security }
|
|
|
|
mount -n -t securityfs securityfs /sys/kernel/security
|
|
|
|
}
|
|
|
|
foreground {
|
|
|
|
if { test -d /sys/firmware/efi }
|
|
|
|
if -n { mountpoint -q /sys/firmware/efi/efivars }
|
|
|
|
mount -n -t efivarfs -o ro efivarfs /sys/firmware/efi/efivars
|
|
|
|
}
|