1 |
commit: 6a79aef0159d7035778fd852b26ecfac903cd029 |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Mar 7 23:40:18 2017 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 7 23:49:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=6a79aef0 |
7 |
|
8 |
init.d/sysfs: Do not load efivarfs module |
9 |
|
10 |
My understanding is that the kernel can autoload this module. If it |
11 |
doesn't, the module should be built in or loaded from an initramfs. |
12 |
|
13 |
This fixes https://github.com/openrc/openrc/pulls/112. |
14 |
|
15 |
init.d/sysfs.in | 17 +++++------------ |
16 |
1 file changed, 5 insertions(+), 12 deletions(-) |
17 |
|
18 |
diff --git a/init.d/sysfs.in b/init.d/sysfs.in |
19 |
index 6d6ec62c..ff0c4e7d 100644 |
20 |
--- a/init.d/sysfs.in |
21 |
+++ b/init.d/sysfs.in |
22 |
@@ -15,7 +15,7 @@ sysfs_opts=nodev,noexec,nosuid |
23 |
|
24 |
depend() |
25 |
{ |
26 |
- want modules |
27 |
+ use modules |
28 |
keyword -docker -lxc -prefix -systemd-nspawn -vserver |
29 |
} |
30 |
|
31 |
@@ -102,19 +102,12 @@ mount_misc() |
32 |
# The presence of /sys/firmware/efi indicates that the system was |
33 |
# booted in efi mode. |
34 |
if [ -d /sys/firmware/efi ]; then |
35 |
- if [ ! -d /sys/firmware/efi/efivars ] && |
36 |
- modprobe -q efivarfs; then |
37 |
- ewarn "The efivarfs module needs to be configured in " \ |
38 |
- "@SYSCONFDIR@/conf.d/modules or built in" |
39 |
- fi |
40 |
if [ -d /sys/firmware/efi/efivars ] && |
41 |
! mountinfo -q /sys/firmware/efi/efivars; then |
42 |
- if grep -qs efivarfs /proc/filesystems; then |
43 |
- ebegin "Mounting efivarfs filesystem" |
44 |
- mount -n -t efivarfs -o ${sysfs_opts} \ |
45 |
- efivarfs /sys/firmware/efi/efivars |
46 |
- eend $? |
47 |
- fi |
48 |
+ ebegin "Mounting efivarfs filesystem" |
49 |
+ mount -n -t efivarfs -o ${sysfs_opts} \ |
50 |
+ efivarfs /sys/firmware/efi/efivars |
51 |
+ eend $? |
52 |
fi |
53 |
fi |
54 |
} |