Gentoo Archives: gentoo-dev

From: Martin Vaeth <martin@×××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: rfc: /etc/init.d/modules loading modules defined in files
Date: Wed, 17 Aug 2016 06:59:50
Message-Id: slrnnr82qe.n2i.martin@lounge.imp.fu-berlin.de
In Reply to: Re: [gentoo-dev] rfc: /etc/init.d/modules loading modules defined in files by William Hubbs
1 William Hubbs <williamh@g.o> wrote:
2 >
3 > but I'm open to making the behaviour compatible
4 > with what systemd does
5
6 Since openrc already supports tmpfiles.d,
7 support for modules-load.d would be natural.
8 In fact, this is already done for quite a while in
9
10 https://github.com/vaeth/firewall-mv/blob/master/openrc/conf.d/modules
11
12 The last line supports modules-load.d:
13
14 modules=$(sed -n -e '/^[^;#]/p' /etc/modules-load.d/*.conf \
15 /usr/lib/modules-load.d/*.conf 2>/dev/null || : )
16
17 For compatibility with other init systems one should perhaps not
18 extend the format of modules-load.d: If one also wants to e.g.
19 support args for modules, this should perhaps be done in
20 a separate directory. /etc/modprobe.d already exists for this,
21 but one might still source another directory which contains
22 only files added to /etc/conf.d/modules

Replies