public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Adam <adam@jaftan.com.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Are runlevels 3 4 5 the same?
Date: Sun, 18 Apr 2010 15:41:47 +1000	[thread overview]
Message-ID: <4BCA9B9B.8030700@jaftan.com.au> (raw)
In-Reply-To: <4BCA96F4.6070305@gmail.com>

On 04/18/10 15:21, Dale wrote:
> Adam wrote:
>> I want to choose console or X from grub, so i'm thinking i'll do
>> something like 'rc-update delete xdm 4' and then pass softlevel=4 to my
>> grub boot line, to make runlevel 4 a console runlevel. Is that the right
>> way to do it?
>>
>>    
> 
> Gentoo doesn't use those runlevels.  You need to read this:
> 
> man rc-update
> 
> Gentoo comes with the following runlevels:
> 
> root@smoker ~ # ls /etc/runlevels/
> total 5
> drwxr-xr-x  6 root root  152 Jun 11  2008 .
> drwxr-xr-x 81 root root 4832 Apr 18 00:16 ..
> drwxr-xr-x  2 root root  368 Jun 11  2008 boot
> drwxr-xr-x  2 root root  512 Apr  9 20:05 default
> drwxr-xr-x  2 root root   72 Jun 11  2008 nonetwork
> root@smoker ~ #
> 
> It generally boots to default.  You can change that on the kernel boot
> line but with one of the above instead of a 4 as you posted.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4

So gentoo does use the numerical runlevels (because that's what init
uses) as well as the gentoo runlevels you've shown. It looks like it
just maps the numbers to the names in inittab;

l0:0:wait:/sbin/rc shutdown
l0s:0:wait:/sbin/halt -dhp
l1:1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
l6r:6:wait:/sbin/reboot -dk

so, i guess this means i should point l4 to a custom runlevel in
/etc/runlevels that is the same as default with the exception that xdm
is removed... I'm assuming the linux kernel wont understand the gentoo
named runlevels, and therefore using those names in grub wouldnt work.










  reply	other threads:[~2010-04-18  5:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-18  5:09 [gentoo-user] Are runlevels 3 4 5 the same? Adam
2010-04-18  5:21 ` Dale
2010-04-18  5:41   ` Adam [this message]
2010-04-18  5:55     ` Dale
2010-04-18 15:04     ` Peter Humphrey
2010-04-18 17:50       ` Neil Bothwick
2010-04-18 22:58         ` Peter Humphrey
2010-04-19  0:48           ` Neil Bothwick
2010-04-18 17:21   ` Alan McKinnon
2010-04-18  8:09 ` Mick
2010-04-18 10:31   ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BCA9B9B.8030700@jaftan.com.au \
    --to=adam@jaftan.com.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox