Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685152 - sys-apps/openrc-0.41.2 - /etc/init.d/modules loads kernel modules twice
Summary: sys-apps/openrc-0.41.2 - /etc/init.d/modules loads kernel modules twice
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-06 00:41 UTC by anonymous
Modified: 2019-05-11 07:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anonymous 2019-05-06 00:41:24 UTC
sys-apps/openrc-0.41.2 was installed during system upgrade yesterday.
Openrc reported that kernel modules specified in /etc/conf.d/modules could not be loaded twice.

I read /etc/init.d/modules. It loads kernel modules twice.
Comment 1 William Hubbs gentoo-dev 2019-05-08 20:26:58 UTC
The only way I know of that it would do that is if the module  is
configured in /etc/conf.d/modules *and*  one of the modules-load.d
directories. If that is the issue you should remove the extra
listing from /etc/conf.d/modules or /etc/modules-load.d/*.conf.
Comment 2 anonymous 2019-05-08 21:55:20 UTC
/etc/modules-load.d/lm_sensors.conf loads it87.
/etc/conf.d/modules loads "vboxdrv vboxnetflt vboxnetadp vboxpci snd-aloop"
Comment 3 William Hubbs gentoo-dev 2019-05-08 22:48:31 UTC
Please attach the output from the following command:

# rc-service --verbose modules restart

Thanks,

William
Comment 4 anonymous 2019-05-08 23:52:29 UTC
~> sudo rc-service --verbose modules restart
Password:
modules                     | * WARNING: you are stopping a boot service
modules                     |modules                     | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/modules stop
modules                     |modules                     | * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/modules start
modules                     | * Loading module it87 ...
modules                     | * Failed to load it87                      [ !! ]
modules                     | * Loading module vboxdrv ...
modules                     | * Failed to load vboxdrv                   [ !! ]
modules                     | * Loading module vboxnetflt ...
modules                     | * Failed to load vboxnetflt                [ !! ]
modules                     | * Loading module vboxnetadp ...
modules                     | * Failed to load vboxnetadp                [ !! ]
modules                     | * Loading module vboxpci ...
modules                     | * Failed to load vboxpci                   [ !! ]
modules                     | * Loading kernel modules ...
modules                     |modprobe: ERROR: could not insert 'vboxdrv': Module already in kernel
modules                     |modprobe: ERROR: could not insert 'vboxnetflt': Module already in kernel
modules                     |modprobe: ERROR: could not insert 'vboxnetadp': Module already in kernel
modules                     |modprobe: ERROR: could not insert 'vboxpci': Module already in kernel
modules                     |modprobe: ERROR: could not insert 'snd_aloop': Module already in kernel
Comment 5 anonymous 2019-05-08 23:54:48 UTC
Perhaps, linux kernel loads modules before /etc/init.d/modules does?
Comment 6 William Hubbs gentoo-dev 2019-05-09 18:17:18 UTC
That is correct, the modules are already loaded.
The solution is to tweak /etc/conf.d/modules until those messages go
away.
Comment 7 anonymous 2019-05-11 07:33:17 UTC
It turned out that /usr/lib/modules-load.d/virtualbox.conf belongs to app-emulation/virtualbox-modules and /etc/init.d/modules loads modules in virtualbox.conf during boot.