diff options
Diffstat (limited to 'main/openrc/read-only-efivars.patch')
-rw-r--r-- | main/openrc/read-only-efivars.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/openrc/read-only-efivars.patch b/main/openrc/read-only-efivars.patch new file mode 100644 index 0000000000..5311ff8aa9 --- /dev/null +++ b/main/openrc/read-only-efivars.patch @@ -0,0 +1,13 @@ +diff --git a/init.d/sysfs.in b/init.d/sysfs.in +index 4f214f6..759f246 100644 +--- a/init.d/sysfs.in ++++ b/init.d/sysfs.in +@@ -96,7 +96,7 @@ mount_misc() + modprobe -q efivarfs + if grep -qs efivarfs /proc/filesystems; then + ebegin "Mounting efivarfs filesystem" +- mount -n -t efivarfs -o ${sysfs_opts} \ ++ mount -n -t efivarfs -o ro,${sysfs_opts} \ + efivarfs /sys/firmware/efi/efivars + eend $? + fi |