Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××.be>
To: gentoo-user@l.g.o
Cc: Michael Orlitzky <mjo@g.o>, Mick <michaelkintzios@×××××.com>
Subject: Re: [gentoo-user] openrc : autoload kernel modules
Date: Thu, 14 Dec 2017 19:30:38
Message-Id: 5BYSNACT.6HTCZDJK.ZOXUMKWF@KK2OCU7B.73373U24.MZHIBMOT
In Reply to: Re: [gentoo-user] openrc : autoload kernel modules by Michael Orlitzky
1 On 12/14/2017 07:43:55 PM, Michael Orlitzky wrote:
2 > On 12/14/2017 12:43 PM, Helmut Jarausch wrote:
3 > >
4 > > I have added the following lines to  /etc/conf.d/modules
5 > >
6 > > modules="enhanceio"
7 > > modules="enhanceio_lru"
8 > > modules="enhanceio_fifo"
9 > > modules="enhanceio_rand"
10 > >
11 >
12 > "modules" is a variable name, and it's being overwritten on each line.
13 > The /etc/init.d/modules script does something like
14 >
15 > for module in $modules; do
16 > load $module
17 > done
18 >
19 > but in your case, "modules" will contain only the last thing you set
20 > it
21 > to, namely modules="enhanceio_rand".
22 >
23
24
25 Many thanks, Michael and Mick.
26
27 It turned out that I had to write
28
29 modules="vboxdrv vboxnetflt vboxnetadp enhanceio enhanceio_lru
30 enhanceio_fifo enhanceio_rand"
31
32 i.e. all modules in one string assignment to the variable 'modules'
33
34 Helmut