Skip to content

Commit

Permalink
Stop mounting efivarfs read-only
Browse files Browse the repository at this point in the history
We do not need to do this any longer since all supported linux kernels
make efivarfs immutable and the tools that manipulate it are aware of
this feature.

This fixes #238.
  • Loading branch information
williamh committed Aug 14, 2018
1 parent 84ed570 commit 7cb8d94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ The only place I know that this was used was Gentoo Baselayout 1.x, so
it shouldn't affect anyone since baselayout-1 has been dead for a few
years.

Since all supported Linux kernel versions now make efivarfs immutable
and all of the tools that access efivarfs are aware of this, we no
longer mount efivarfs read-only. See the following github issue for more
information:

https://github.com/openrc/openrc/issues/238

## OpenRC 0.37

start-stop-daemon now supports logging stdout and stderr of daemons to
Expand Down
2 changes: 1 addition & 1 deletion init.d/sysfs.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 ro \
mount -n -t efivarfs -o ${sysfs_opts} \
efivarfs /sys/firmware/efi/efivars 2> /dev/null
eend 0
fi
Expand Down

0 comments on commit 7cb8d94

Please sign in to comment.