Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel line option for interactive vs parallel 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
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 642

PostPosted: Fri Jun 24, 2011 9:36 pm    Post subject: kernel line option for interactive vs parallel boot? Reply with quote

Hi,


I like the parallel boot option (RC_PARALLEL="yes" in /etc/rc.conf), but sometimes I need an interactive boot (RC_INTERACTIVE="yes" in /etc/rc.conf); they are mutually exclusive.

I'd like to put two lines in grub: one with parallel, and one with interactive. Therefore: is it possible to create a kernel line option that switches between the two (e.g., specifying an alternative rc.conf)?


TIA,

Erik
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Fri Jun 24, 2011 10:32 pm    Post subject: Reply with quote

Kernel line I don't think so. The live cd prompts you in the init script for interactive, I believe genkernel's env does it as well. Not sure if it disables parallel or not. I'm not exactly sure how it goes about it... but I would modify the init script to prompt for an interactive boot wait for timeout for default setting and set your variables accordingly.
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Fri Jun 24, 2011 11:34 pm    Post subject: Reply with quote

Dunno if that works, but should, imho: Copy both rc.conf files into your initrd, in the initrd's init, check the cmdline and then copy the appropriate rc.conf to the system before calling the real init?
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
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