1 |
On Sunday 15 May 2011 11:34:07 Dale wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I updated my kernel and had to reboot. I usually boot to single user |
5 |
> mode and rebuild my video drivers. Since I have this in my grub list, I |
6 |
> just select single user and it boots to single user mode. Well, not any |
7 |
> more. This is my current settings: |
8 |
> |
9 |
> title Gentoo |
10 |
> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 |
11 |
> |
12 |
> title Gentoo boot level |
13 |
> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 softlevel=boot |
14 |
> |
15 |
> title Gentoo single user |
16 |
> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 softlevel=single |
17 |
> |
18 |
> root@fireball / # |
19 |
> |
20 |
> I went back and looked at the guide but no mention of this. I don't see |
21 |
> anything in the man pages either. What is the correct way to define a |
22 |
> runlevel to boot to in grub with the new openrc? |
23 |
> |
24 |
> Thanks. |
25 |
> |
26 |
> Dale |
27 |
> |
28 |
> :-) :-) |
29 |
|
30 |
According to my /etc/inittab: |
31 |
|
32 |
# new-style single-user |
33 |
su0:S:wait:/sbin/rc single |
34 |
su1:S:wait:/sbin/sulogin |
35 |
|
36 |
so softlevel=single should get you there. However, you say it doesn't ... |
37 |
|
38 |
# rc-update show single |
39 |
# |
40 |
|
41 |
Hmm ... nothing there. Sure enough its empty: |
42 |
|
43 |
$ ls -la /etc/runlevels/single/ |
44 |
total 8 |
45 |
drwxr-xr-x 2 root root 4096 Jan 21 2010 . |
46 |
drwxr-xr-x 8 root root 4096 May 2 10:54 .. |
47 |
|
48 |
So, what you would need to do I think is add the services you want starting at |
49 |
single runlevel there and you should be good to go. |
50 |
-- |
51 |
Regards, |
52 |
Mick |