Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub menu and the new openrc
Date: Sun, 15 May 2011 15:59:37
Message-Id: 201105151658.45924.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] grub menu and the new openrc by Dale
1 On Sunday 15 May 2011 16:39:19 Dale wrote:
2 > Mick wrote:
3 > > On Sunday 15 May 2011 11:34:07 Dale wrote:
4 > >> Hi,
5 > >>
6 > >> I updated my kernel and had to reboot. I usually boot to single user
7 > >> mode and rebuild my video drivers. Since I have this in my grub list, I
8 > >> just select single user and it boots to single user mode. Well, not any
9 > >> more. This is my current settings:
10 > >>
11 > >> title Gentoo
12 > >> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3
13 > >>
14 > >> title Gentoo boot level
15 > >> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 softlevel=boot
16 > >>
17 > >> title Gentoo single user
18 > >> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 softlevel=single
19 > >>
20 > >> root@fireball / #
21 > >>
22 > >> I went back and looked at the guide but no mention of this. I don't see
23 > >> anything in the man pages either. What is the correct way to define a
24 > >> runlevel to boot to in grub with the new openrc?
25 > >>
26 > >> Thanks.
27 > >>
28 > >> Dale
29 > >>
30 > >> :-) :-)
31 > >
32 > > According to my /etc/inittab:
33 > >
34 > > # new-style single-user
35 > > su0:S:wait:/sbin/rc single
36 > > su1:S:wait:/sbin/sulogin
37 > >
38 > > so softlevel=single should get you there. However, you say it doesn't
39 > > ...
40 > >
41 > > # rc-update show single
42 > > #
43 > >
44 > > Hmm ... nothing there. Sure enough its empty:
45 > >
46 > > $ ls -la /etc/runlevels/single/
47 > > total 8
48 > > drwxr-xr-x 2 root root 4096 Jan 21 2010 .
49 > > drwxr-xr-x 8 root root 4096 May 2 10:54 ..
50 > >
51 > > So, what you would need to do I think is add the services you want
52 > > starting at single runlevel there and you should be good to go.
53 >
54 > There never has been anything in my single user runlevel. It worked
55 > fine a few weeks ago but after the openrc upgrade, no more worky.
56 >
57 > The funny thing is, I can go to a console and type in rc single, that
58 > works fine. It goes to single user mode with no errors. Well, I did
59 > notice top showed the ttys still running. I'm going to test that
60 > later. That may be another thread for another day. Sort of beating on
61 > one thing at a time. ;-)
62 >
63 > I just thought maybe it changed from softlevel to something else but if
64 > it did, I can't find it documented anywhere and even Google appears to
65 > be lost on this.
66 >
67 > Open to ideas still.
68
69 The so called 'single' softlevel is a Gentoo fix for user specified runlevels
70 with their own selected services. I don't have a pre-OpenRC box to check that
71 it linked to, but I seem to remember that it went to runlevel 3 and adjusted
72 services from there.
73
74 The standard Linux runlevel called also single (confusing isn't it) stops
75 before runlevel 3 and asks for a root passwd (or Control+D to continue). It
76 can be called by appending 1 or S to the boot line.
77
78 If you don't want to have to login with a password then I think you need to
79 append 'init=/bin/bash' and mount as rw what fs you need to work on. You'll
80 have to sync and umount before you reboot to be safe.
81
82 Could also work with 'init=/bin/bb' for busybox - but I'm not sure.
83
84 HTH.
85 --
86 Regards,
87 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature