2018-03-06 11:37 GMT+02:00 J. Roeleveld <jo...@antarean.org>: > On Tuesday, March 6, 2018 10:21:43 AM CET gevisz wrote: >> 2018-03-05 23:35 GMT+02:00 Neil Bothwick <n...@digimed.co.uk>: >> > On Mon, 5 Mar 2018 22:40:00 +0200, gevisz wrote: >> >> Can anybody explain me who loads virtualbox-modules without my consent >> >> and how I can make them loaded only when I need them (just before I am >> >> going to run VirtualBox, which I do not so often)? >> > >> > The ebuild installs /usr/lib/modules-load.d/virtualbox.conf which causes >> > the modules to be loaded by systemd-modules-load.service. Systemd gives >> > priority to similarly names files in /etc so creating an >> > empty /etc/modules-load.d/virtualbox.conf should prevent them loading, >> > although I'm basing that on the man page rather than actual experience. >> >> Thank you for your reply. >> >> My system indeed has file /usr/lib/modules-load.d/virtualbox.conf >> file and it indeed lists all virtualbox modules. >> >> And, indeed, creating directory /etc/modules-load.d/ and an empty >> /etc/modules-load.d/virtualbox.conf file precludes loading virtualbox >> moduli during boot >> >> The only problem here is that I do not use systemd, only openrc. >> >> So, https://wiki.gentoo.org/wiki/VirtualBox is outdated? >> At least with respect to its OpenRC part. >> >> And why at all OpenRC uses the systemd config files? >> >> Ah, yes, /etc/init.d/modules-load >> "loads a list of modules from systemd-compatible locations". >> Ok. But the problem is that I cannot find any symlink to this file >> from any subdirectory of /etc/runlevels/ >> >> > You could also disable the service if you don't want any >> > non-hotplugged modules loaded at boot. >> >> So, I do not know how to disable this service. > > It is a dependency for "modules", which is (on my system) in the boot > runlevel.
Yes, this is the case for my system. Thank you.