Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
runlevels and init
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
wyrickre
n00b
n00b


Joined: 10 Jul 2002
Posts: 27
Location: Colorado Springs, CO

PostPosted: Mon Jul 22, 2002 5:38 pm    Post subject: runlevels and init Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jul 22, 2002 7:29 pm    Post subject: Reply with quote

Gentoo doesn't believe in runlevels. :D
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ChrisW
Guest





PostPosted: Tue Jul 23, 2002 3:14 am    Post subject: Reply with quote

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
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jul 23, 2002 3:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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