summaryrefslogtreecommitdiff
path: root/system/openrc/0006-mount-efivars-read-only.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-21 23:35:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-24 01:21:58 -0500
commit0cdfe6311e4e85c939ca43f2767fc2ab769bf984 (patch)
tree62eb87f89a7df2fb40f674ef1662fc823d280e18 /system/openrc/0006-mount-efivars-read-only.patch
parentabc5741733ee8022e25fc50aa6f13e3f747d616e (diff)
downloadpackages-0cdfe6311e4e85c939ca43f2767fc2ab769bf984.tar.gz
packages-0cdfe6311e4e85c939ca43f2767fc2ab769bf984.tar.bz2
packages-0cdfe6311e4e85c939ca43f2767fc2ab769bf984.tar.xz
packages-0cdfe6311e4e85c939ca43f2767fc2ab769bf984.zip
system/openrc: Don't force efivarfs to be r/o
This fixes all the stupid EFI bugs in Horizon. Upstream: https://github.com/OpenRC/openrc/issues/238
Diffstat (limited to 'system/openrc/0006-mount-efivars-read-only.patch')
-rw-r--r--system/openrc/0006-mount-efivars-read-only.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/system/openrc/0006-mount-efivars-read-only.patch b/system/openrc/0006-mount-efivars-read-only.patch
deleted file mode 100644
index ec2321dd2..000000000
--- a/system/openrc/0006-mount-efivars-read-only.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 37feb4b716525f0c5c5469f21686ab4efcf06fab Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Wed, 1 Feb 2017 04:18:53 +0000
-Subject: [PATCH 6/7] mount efivars read-only
-
-unintentional writes to efivars may result in bricked hardware. mount it
-read-only to play safe.
----
- init.d/sysfs.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/init.d/sysfs.in b/init.d/sysfs.in
-index e493f584..bfd0d438 100644
---- a/init.d/sysfs.in
-+++ b/init.d/sysfs.in
-@@ -101,7 +101,7 @@ mount_misc()
- if [ -d /sys/firmware/efi/efivars ] &&
- ! mountinfo -q /sys/firmware/efi/efivars; 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 2> /dev/null
- eend 0
- fi
---
-2.11.1
-