Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding BEGIN script to runlevel boot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
free beastie
n00b
n00b


Joined: 20 Jan 2003
Posts: 40
Location: Bochum, Germany

PostPosted: Mon Jan 20, 2003 9:08 pm    Post subject: Adding BEGIN script to runlevel boot? Reply with quote

I want to share a swap partition on my FreeBSD/Gentoo multiboot box. There is a howto which mentions that you have to 'fingerprint' linux swap partitions (using mkswap) before swapon will accept them, so I need (presumably) a script in /etc/init.d/ which calls mkswap and is executed BEFORE localmount (which is the one to call swapon -a).
This is what I figured out, hopefully I got that right.
I don't want to alter the existing scripts since they may be overwritten by emerge baselayout. So the cleanest approach seems to me to include the mkswap-calling script into the 'boot' runlevel which contains
Code:
depend {
  before localmount
}

but this didn't work: my script got executed last, as seen on screen and documented in /mnt/.init.d/started/ .
(Yes, I did use rc-update add mkswap boot, where mkswap is the name of my script)
Tried the same with rl default, and with no begin clause in mkswap but 'depend mkswap' in localmount; all of which had the same result as mentioned above.
Now, am I missing something, or did I hit a bug in the docs or in the implementation?
Thanks in advance
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Jan 20, 2003 9:27 pm    Post subject: Reply with quote

Split from Init order
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum