aboutsummaryrefslogtreecommitdiff
path: root/init.d/sysfs.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-08-18 16:25:56 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-08-19 11:08:27 -0500
commit73cdf10f1f513be7b5dec4f1cc91e0c68cda689b (patch)
treea44f527e733cda77d83be6fb13cf9af892ae5a44 /init.d/sysfs.in
parent1a55d46645b376cd27f394796934150120a08387 (diff)
Deprecate automatic loading of modules
In the hwclock, procfs and sysfs service scripts, we automatically attempt to load the kernel modules we need before we take any action. We shouldn't do this, because there are systems which do not use kernel modules and do not have the kmod package installed. With this change, we continue to load the modules ourselves, but we warn the admin that they need to be added to /etc/conf.d/modules or built into the kernel. In the future, this automatic loading will be dropped. X-Gentoo-Bug: 342313 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=342313
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r--init.d/sysfs.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 6929810d..87adacd9 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -15,6 +15,7 @@ sysfs_opts=nodev,noexec,nosuid
depend()
{
+ want modules
keyword -docker -lxc -prefix -systemd-nspawn -vserver
}
@@ -102,7 +103,10 @@ mount_misc()
# it will NOT appear in /proc/filesystems yet
if [ -d /sys/firmware/efi/efivars ] \
&& ! mountinfo -q /sys/firmware/efi/efivars; then
- modprobe -q efivarfs
+ if modprobe -q efivarfs; then
+ ewarn "The efivarfs module needs to be configured in \
+ @SYSCONFDIR@/conf.d/modules or built in"
+ fi
if grep -qs efivarfs /proc/filesystems; then
ebegin "Mounting efivarfs filesystem"
mount -n -t efivarfs -o ${sysfs_opts} \