You are not logged in.

#1 2011-09-10 07:09:20

mj4077au
Member
Registered: 2010-06-09
Posts: 39

Setup Virtualbox modules without initscripts/sysvinit installed?

Hi All,

I'm running my Arch lappy without any any initscripts or sysvinit installed as I'm running and playing with systemd.

Just wondering if anyone can guide me on how to build the modules for Virtualbox? smile


Cheers,
Mitch.

Offline

#2 2011-09-10 12:17:39

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

This is rather an installation related topic.
Moving there.


To know or not to know ...
... the questions remain forever.

Offline

#3 2011-09-10 13:12:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

/etc/rc.d/vboxdrv calls build scripts from /usr/lib/virtualbox/src/* - this is also where the driver source code is.

Offline

#4 2011-09-10 13:13:09

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

And this is why I've asked ioni to move the rebuild script out of /etc/rc.d. It is not some sort of daemon that relies on /sbin/init. It's just a bash script that recompiles the modules. You run `/etc/rc.d/vboxdrv setup' regardless of the init you booted off of.

Offline

#5 2011-09-10 17:32:04

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

+1 to that. Its presence in /etc/rc.d never made sense to me.

Offline

#6 2011-09-10 21:01:42

mj4077au
Member
Registered: 2010-06-09
Posts: 39

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

HI All,

Thanks for the responses. Yes, this would be installation-related, so I thank you for moving it to the right place smile

The thing is falconindy, I completely removed initscripts. Everything has been working fine for about two months so I got rid of the older stuff. This is what I get without initscripts installed:

[mitchell@richters-laptop ~]$ sudo /etc/rc.d/vboxdrv setup
/etc/rc.d/vboxdrv: line 3: /etc/rc.conf: No such file or directory
/etc/rc.d/vboxdrv: line 4: /etc/rc.d/functions: No such file or directory
/etc/rc.d/vboxdrv: line 23: stat_busy: command not found
/etc/rc.d/vboxdrv: line 30: stat_done: command not found
/etc/rc.d/vboxdrv: line 42: stat_busy: command not found
/etc/rc.d/vboxdrv: line 44: stat_done: command not found
/etc/rc.d/vboxdrv: line 47: stat_busy: command not found
/etc/rc.d/vboxdrv: line 49: stat_done: command not found
/etc/rc.d/vboxdrv: line 52: stat_busy: command not found
/etc/rc.d/vboxdrv: line 54: stat_done: command not found
/etc/rc.d/vboxdrv: line 57: stat_busy: command not found
/etc/rc.d/vboxdrv: line 59: stat_done: command not found
/etc/rc.d/vboxdrv: line 62: stat_busy: command not found
[mitchell@richters-laptop ~]$

I don't even know what package owns "stat_done" and "stat_busy", I can't see it in the file listing for initscripts.

I can see how it's building now from the script and will manually compile for now smile.

Last edited by mj4077au (2011-09-10 21:06:22)

Offline

#7 2011-09-10 21:11:41

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

mj4077au wrote:

I don't even know what package owns "stat_done" and "stat_busy", I can't see it in the file listing for initscripts.

They are functions defined in:

[...]
/etc/rc.d/vboxdrv: line 4: /etc/rc.d/functions: No such file or directory
[...]

Last edited by jakobm (2011-09-10 21:12:05)

Offline

#8 2011-09-10 21:14:53

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

Best fix ever:

# /etc/rc.d/vboxdrv setup 2>/dev/null

The script works just fine without the fancy output.

Offline

#9 2011-09-11 05:57:05

mj4077au
Member
Registered: 2010-06-09
Posts: 39

Re: Setup Virtualbox modules without initscripts/sysvinit installed?

falconindy wrote:

Best fix ever:

# /etc/rc.d/vboxdrv setup 2>/dev/null

The script works just fine without the fancy output.


Nice smile. It does seem to still work smile. By the way, cheers for all your hard work with systemd big_smile

Last edited by mj4077au (2011-09-11 06:01:10)

Offline

Board footer

Powered by FluxBB