View previous topic :: View next topic |
Author |
Message |
wyrickre n00b
Joined: 10 Jul 2002 Posts: 27 Location: Colorado Springs, CO
|
Posted: Mon Jul 22, 2002 5:38 pm Post subject: runlevels and init |
|
|
I have Gentoo installed and working, but I have one concern...
X windows is in the default runlevel (here I'm referring to init's runlevels) of 3. Before Gentoo, I was a Mandrake user and used lilo as my boot manager. Under Mandrake, X is runlevel 5. More than once, I've swapped monitors/video cards on a system and had to boot linux by passing the runlevel on the LILO: boot prompt. (eg LILO: linux 3, for runlevel 3). This allowed me to get into the system and reconfigure it so that X would work. Of course I could have just configured the system to not boot X on startup before I made the change, but in the case of a hardware failure, I wouldn't have had that opportunity.
I don't see an equivalent way of doing this under Gentoo's runlevel system and grub... Is there a way to specify the runlevel at bootup?
This is somewhat related to a suggestion I posted earlier |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jul 22, 2002 7:29 pm Post subject: |
|
|
Gentoo doesn't believe in runlevels. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
ChrisW Guest
|
Posted: Tue Jul 23, 2002 3:14 am Post subject: |
|
|
Use grub's features to edit the kernel line before boot. Add the word single to the end of the line and you can boot a maintenance mode. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jul 23, 2002 3:16 am Post subject: |
|
|
If you look at /etc/inittab, you will find these lines:
Code: |
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
|
There is no reason you cannot change 3 to a virtual runlevel like noX by doing this:
Code: |
l3:3:wait:/sbin/rc noX
|
Remember to change the initdefault line to 5 if you do this if you want to start X by default when you boot. |
|
Back to top |
|
|
|