1 |
On 04/18/10 15:21, Dale wrote: |
2 |
> Adam wrote: |
3 |
>> I want to choose console or X from grub, so i'm thinking i'll do |
4 |
>> something like 'rc-update delete xdm 4' and then pass softlevel=4 to my |
5 |
>> grub boot line, to make runlevel 4 a console runlevel. Is that the right |
6 |
>> way to do it? |
7 |
>> |
8 |
>> |
9 |
> |
10 |
> Gentoo doesn't use those runlevels. You need to read this: |
11 |
> |
12 |
> man rc-update |
13 |
> |
14 |
> Gentoo comes with the following runlevels: |
15 |
> |
16 |
> root@smoker ~ # ls /etc/runlevels/ |
17 |
> total 5 |
18 |
> drwxr-xr-x 6 root root 152 Jun 11 2008 . |
19 |
> drwxr-xr-x 81 root root 4832 Apr 18 00:16 .. |
20 |
> drwxr-xr-x 2 root root 368 Jun 11 2008 boot |
21 |
> drwxr-xr-x 2 root root 512 Apr 9 20:05 default |
22 |
> drwxr-xr-x 2 root root 72 Jun 11 2008 nonetwork |
23 |
> root@smoker ~ # |
24 |
> |
25 |
> It generally boots to default. You can change that on the kernel boot |
26 |
> line but with one of the above instead of a 4 as you posted. |
27 |
|
28 |
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 |
29 |
|
30 |
So gentoo does use the numerical runlevels (because that's what init |
31 |
uses) as well as the gentoo runlevels you've shown. It looks like it |
32 |
just maps the numbers to the names in inittab; |
33 |
|
34 |
l0:0:wait:/sbin/rc shutdown |
35 |
l0s:0:wait:/sbin/halt -dhp |
36 |
l1:1:wait:/sbin/rc single |
37 |
l2:2:wait:/sbin/rc nonetwork |
38 |
l3:3:wait:/sbin/rc default |
39 |
l4:4:wait:/sbin/rc default |
40 |
l5:5:wait:/sbin/rc default |
41 |
l6:6:wait:/sbin/rc reboot |
42 |
l6r:6:wait:/sbin/reboot -dk |
43 |
|
44 |
so, i guess this means i should point l4 to a custom runlevel in |
45 |
/etc/runlevels that is the same as default with the exception that xdm |
46 |
is removed... I'm assuming the linux kernel wont understand the gentoo |
47 |
named runlevels, and therefore using those names in grub wouldnt work. |