aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/read-only-efivars.patch
blob: 5311ff8aa96d99a7bdbd475ac25c44430cb5f5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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