Gentoo Archives: gentoo-user

From: gevisz <gevisz@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Are VirtualBox moduli loaded by themselves?
Date: Tue, 06 Mar 2018 15:29:02
Message-Id: CA+t6X7dCGgtg-bLJQaQhm-Sdxg-zqWF7kjdmCwLJeBG41hBUzw@mail.gmail.com
In Reply to: Re: [gentoo-user] Are VirtualBox moduli loaded by themselves? by "J. Roeleveld"
1 2018-03-06 11:37 GMT+02:00 J. Roeleveld <joost@××××××××.org>:
2 > On Tuesday, March 6, 2018 10:21:43 AM CET gevisz wrote:
3 >> 2018-03-05 23:35 GMT+02:00 Neil Bothwick <neil@××××××××××.uk>:
4 >> > On Mon, 5 Mar 2018 22:40:00 +0200, gevisz wrote:
5 >> >> Can anybody explain me who loads virtualbox-modules without my consent
6 >> >> and how I can make them loaded only when I need them (just before I am
7 >> >> going to run VirtualBox, which I do not so often)?
8 >> >
9 >> > The ebuild installs /usr/lib/modules-load.d/virtualbox.conf which causes
10 >> > the modules to be loaded by systemd-modules-load.service. Systemd gives
11 >> > priority to similarly names files in /etc so creating an
12 >> > empty /etc/modules-load.d/virtualbox.conf should prevent them loading,
13 >> > although I'm basing that on the man page rather than actual experience.
14 >>
15 >> Thank you for your reply.
16 >>
17 >> My system indeed has file /usr/lib/modules-load.d/virtualbox.conf
18 >> file and it indeed lists all virtualbox modules.
19 >>
20 >> And, indeed, creating directory /etc/modules-load.d/ and an empty
21 >> /etc/modules-load.d/virtualbox.conf file precludes loading virtualbox
22 >> moduli during boot
23 >>
24 >> The only problem here is that I do not use systemd, only openrc.
25 >>
26 >> So, https://wiki.gentoo.org/wiki/VirtualBox is outdated?
27 >> At least with respect to its OpenRC part.
28 >>
29 >> And why at all OpenRC uses the systemd config files?
30 >>
31 >> Ah, yes, /etc/init.d/modules-load
32 >> "loads a list of modules from systemd-compatible locations".
33 >> Ok. But the problem is that I cannot find any symlink to this file
34 >> from any subdirectory of /etc/runlevels/
35 >>
36 >> > You could also disable the service if you don't want any
37 >> > non-hotplugged modules loaded at boot.
38 >>
39 >> So, I do not know how to disable this service.
40 >
41 > It is a dependency for "modules", which is (on my system) in the boot
42 > runlevel.
43
44 Yes, this is the case for my system. Thank you.