Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/
Date: Tue, 07 Mar 2017 23:54:40
Message-Id: 1488930582.6a79aef0159d7035778fd852b26ecfac903cd029.williamh@OpenRC
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 }