Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub menu and the new openrc
Date: Mon, 16 May 2011 12:12:19
Message-Id: 4DD1144C.9080903@gmail.com
In Reply to: Re: [gentoo-user] grub menu and the new openrc by Mick
1 Mick wrote:
2 > On Monday 16 May 2011 02:47:31 Dale wrote:
3 >
4 >> Daniel da Veiga wrote:
5 >>
6 >>> On Sun, May 15, 2011 at 20:12, Dale<rdalek1967@×××××.com
7 >>>
8 >>> <mailto:rdalek1967@×××××.com>> wrote:
9 >>> Daniel da Veiga wrote:
10 >>> I have a similar entry, but have never used the softlevel=
11 >>> flag, I simply append "single" at the end of the kernel call
12 >>> and it boots in single user (root password or ctrl+d to
13 >>> continue).
14 >>>
15 >>> I did get this to work:
16 >>>
17 >>> title Gentoo single user
18 >>> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 rw single
19 >>>
20 >>> So, all I need now is to figure out how to get this work:
21 >>>
22 >>>
23 >>> title Gentoo boot level
24 >>> kernel (hd0,0)/bzImage-2.6.38-r5-1 root=/dev/sda3 softlevel=boot
25 >>>
26 >>> It appears the softlevel= is no longer working with the new
27 >>> openrc. It looks like the docs need to be updated. I also tried
28 >>> init= and it doesn't work either.
29 >>>
30 > Did you try creating a new runlevel (dale_special) and then booting into it by
31 > appending softlevel=dale_special ?
32 >
33 > That will prove if the Gentoo softlevel mechanism is no longer available.
34 >
35 >
36 >
37
38 I tried some of the other runlevels, nonetwork, single, boot and none of
39 those work except for single by just putting "rw single" in the boot
40 line. Single doesn't work if I select it by using softlevel=single.
41 That does work if I am in default then switch to single in a console
42 tho. That would be using the "rc single" command. I used to have
43 another runlevel that I created myself but I removed it a good while
44 back when I got boot set up like I wanted. It appears that openrc has
45 not been told what softlevel is. I do see where it is passed on to the
46 OS from grub during the boot process tho.
47
48 >>> Time to go farther up the food chain I guess. The docs need to be
49 >>> changed at least.
50 >>>
51 >>> Updated docs are always good, but I wonder why do you need this.
52 >>> If I need single user I simply press "e", edit the line and add
53 >>> single, followed by a "b" to boot. That is a for maintenance only so I
54 >>> really don't see a need for it at grub menu, same wth the other
55 >>> runlevels, all you gotta do is append "nox" or use Interactive (again,
56 >>> this is only if something is broken, I can't see myself doing this
57 >>> twice in a week)...
58 >>>
59 > I think that nox brings you all the way up to runlevel 3, not runlevel 1.
60 >
61 >
62 >
63
64 I have used nox before on a CD. The reason I like to use the ones I
65 already have is that I already know exactly what is running and what is
66 not. When I boot to single by adding "rw single" to the end of the boot
67 line, I still have to start some services to get where I want to be.
68 Being able to boot to the boot runlevel is much better since I have some
69 things already set to start. Openrc doesn't mount things listed in
70 fstab such as /home/ portage and /var which are separate partitions.
71 >> The thing is, I do use them which is why I went to the trouble of
72 >> setting them up to begin with. I actually use them pretty regular.
73 >> Just because others don't use them doesn't mean that I don't or shouldn't.
74 >>
75 >> I tried to use them is how I figured out it didn't work anymore. That
76 >> alone shows that I use them for various reasons. This update is less
77 >> than a week old and I already found out that this doesn't work anymore.
78 >> I just want to figure out how it works with openrc which it appears no
79 >> one has a answer and the docs are wrong as well.
80 >>
81 > The definitive answer is that the gentoo "single" softlevel does not work.
82 > The Linux standard "single" or "S" or "1" runlevel works fine (but I can't
83 > recall if I tried "1" recently).
84 >
85 > So the question remains what is happening with other softlevels if you care to
86 > create them.
87 >
88 >
89
90 I'm beginning to think that openrc goes back to the "old" Linux way. In
91 other words, it uses the init levels instead of softlevels. The only
92 thing that makes me think that is not true, init=runlevel doesn't work
93 either. I suspect that init=/bin/bash would work but not tested yet. I
94 have this in inittab:
95
96 l0:0:wait:/sbin/rc shutdown
97 l0s:0:wait:/sbin/halt -dhp
98 l1:1:wait:/sbin/rc single
99 l2:2:wait:/sbin/rc nonetwork
100 l3:3:wait:/sbin/rc default
101 l4:4:wait:/sbin/rc default
102 l5:5:wait:/sbin/rc default
103 l6:6:wait:/sbin/rc reboot
104 l6r:6:wait:/sbin/reboot -dk
105
106 I assume I could edit that to look like this:
107
108 l0:0:wait:/sbin/rc shutdown
109 l0s:0:wait:/sbin/halt -dhp
110 l1:1:wait:/sbin/rc single
111 l2:2:wait:/sbin/rc boot
112 l3:3:wait:/sbin/rc nonetwork
113 l4:4:wait:/sbin/rc default
114 l5:5:wait:/sbin/rc default
115 l6:6:wait:/sbin/rc reboot
116 l6r:6:wait:/sbin/reboot -dk
117 #z6:6:respawn:/sbin/sulogin
118
119 The only problem with that is that there are more runlevel options than
120 there are lines there for me to add.
121
122 Even tho I can sort of get to what I want, I still want to get the new
123 way sorted so that I can get the doc team to update the docs. If this
124 has been overlooked, then it may be that the devs will have to add this
125 feature or make other changes so that this is doable.
126
127 I also posted on the forums. They are equally stumped. I am beginning
128 to think this was over looked somehow.
129
130 Dale
131
132 :-) :-)

Replies

Subject Author
Re: [gentoo-user] grub menu and the new openrc Mick <michaelkintzios@×××××.com>