Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo development <gentoo-dev@l.g.o>
Subject: [gentoo-dev] rfc: openrc using modprobe directly to load kernel modules
Date: Wed, 17 Aug 2016 16:55:34
Message-Id: 20160817165456.GA9360@whubbs1.gaikai.biz
1 All,
2
3 I'm starting this thread because of the bug I'm citing below [1].
4
5 The issue is that some systems do not use kernel modules, and do not
6 have kmod installed at all. Since we run modprobe unconditionally in a
7 few places in OpenRC, we always generate "modprobe: command not found"
8 errors on systems which are set up like this.
9
10 If you read the bug, the proposed fixes have been a bit controversial in
11 the past. Since we have the "want" dependency now, I would like to
12 propose a different fix.
13
14 1. all of the current openrc services that use modprobe should have
15 "want modules" in their dependencies.
16 2. After this is done, these services should still attempt to load the
17 modules if necessary, but they should complain to the user about it and
18 recommend either building these modules in or using /etc/conf.d/modules
19 to configure them so they are loaded by the modules service.
20 3. Then, at some point in the future, OpenRC could remove the modprobe
21 commands.
22
23 Thoughts?
24
25 William
26
27 [1] https://bugs.gentoo.org/show_bug.cgi?id=342313

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies