From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-122877-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QMDJh-0003We-TN
	for garchives@archives.gentoo.org; Tue, 17 May 2011 05:59:38 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3F3FD1C24B;
	Tue, 17 May 2011 05:57:58 +0000 (UTC)
Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id CBCDF1C24B
	for <gentoo-user@lists.gentoo.org>; Tue, 17 May 2011 05:57:57 +0000 (UTC)
Received: by wyi11 with SMTP id 11so136161wyi.40
        for <gentoo-user@lists.gentoo.org>; Mon, 16 May 2011 22:57:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:from:reply-to:to:subject:date:user-agent
         :references:in-reply-to:mime-version:content-type
         :content-transfer-encoding:message-id;
        bh=/MwZqAceT1XgroJ45fG0XeQPmkAYzAH21qlt+nyY4RQ=;
        b=RbeSbGnnwhoyjiS34mAJP/SjoDt7av1gDN4NhBYWLogGp6iOwSVy8HPFXdI3bd4fAi
         fh558SLFRcjrR05ZGJuxVsdNSPzGXt0m1MY1yQPhsqZriu4aFAhGHZMEximIiTI21+DW
         AFQ0w493LlEPduwTODbUdN1Zo/VoEMfDj2xOw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:reply-to:to:subject:date:user-agent:references:in-reply-to
         :mime-version:content-type:content-transfer-encoding:message-id;
        b=Klb7Nap3kqCJ7kUBBO1Af56Xq2CCsA2zuE/wbtHt+VU9BreCCF26qyAcPaTIR4/cB0
         Vf4IkXQaVEH2tJePQCo9f9rvFXLJAXyostGcx5vqs+3TsEgLWw7Iumo55R+55bIlMFwT
         ZXWi3Dcbn3e4BeGbf8tGpFJkt9rSQqDl4bLaU=
Received: by 10.216.143.74 with SMTP id k52mr3002360wej.8.1305611876809;
        Mon, 16 May 2011 22:57:56 -0700 (PDT)
Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa [217.169.3.230])
        by mx.google.com with ESMTPS id bd8sm99980wbb.65.2011.05.16.22.57.54
        (version=TLSv1/SSLv3 cipher=OTHER);
        Mon, 16 May 2011 22:57:55 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] grub menu and the new openrc
Date: Tue, 17 May 2011 06:58:20 +0100
User-Agent: KMail/1.13.7 (Linux/2.6.37-gentoo-r4; KDE/4.6.2; x86_64; ; )
References: <4DCFAC1F.1030101@gmail.com> <201105160709.49022.michaelkintzios@gmail.com> <4DD1144C.9080903@gmail.com>
In-Reply-To: <4DD1144C.9080903@gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart5365450.HSbuVhy3XZ";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201105170658.31400.michaelkintzios@gmail.com>
X-Archives-Salt: 
X-Archives-Hash: 34d3646f8a43aef72e944564868f0fdb

--nextPart5365450.HSbuVhy3XZ
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable

On Monday 16 May 2011 13:10:52 Dale wrote:
> Mick wrote:

> > Did you try creating a new runlevel (dale_special) and then booting into
> > it by appending softlevel=3Ddale_special ?
> >=20
> > That will prove if the Gentoo softlevel mechanism is no longer availabl=
e.
>=20
> I tried some of the other runlevels, nonetwork, single, boot and none of
> those work except for single by just putting "rw single" in the boot
> line.  Single doesn't work if I select it by using softlevel=3Dsingle.
> That does work if I am in default then switch to single in a console
> tho.  That would be using the "rc single" command.  I used to have
> another runlevel that I created myself but I removed it a good while
> back when I got boot set up like I wanted.  It appears that openrc has
> not been told what softlevel is.  I do see where it is passed on to the
> OS from grub during the boot process tho.

OK, it is clear then that (some?) of the gentoo runlevels called with the=20
softlevel incantation do not work as they used to with baselayout 1.  I jus=
t=20
tried softlevel=3Dsingle and it definitely didn't work.  Also,=20
softlevel=3Dsysinit, didn't work.  However, softlevel=3Dnonetwork *did* wor=
k ...=20
well, sort of.  It mounted everything, then started devices including my=20
network card (I have enabled rc_hotplugging devices in /etc/rc.conf so this=
=20
may have something to do with it) and then it stopped before starting thing=
s=20
like iptables, local, etc.

Sure enough I had an IP address and was able to connect to the world ...=20
albeit without iptables running (not sure I would have a use case for this=
=20
scenario).

I'm not sure if setting rc_hotplug made this messy, but from=20

$ ls -la /etc/runlevels/
total 32
drwxr-xr-x  8 root root 4096 May  2 10:54 .
drwxr-xr-x 88 root root 4096 May 16 21:11 ..
drwxr-xr-x  2 root root 4096 May  2 10:54 boot
drwxr-xr-x  2 root root 4096 May 15 20:01 default
drwxr-xr-x  2 root root 4096 Jan 21  2010 nonetwork
drwxr-xr-x  2 root root 4096 May  2 10:54 shutdown
drwxr-xr-x  2 root root 4096 Jan 21  2010 single
drwxr-xr-x  2 root root 4096 May  2 10:54 sysinit

single and sysinit are ignored (runlevel 3 comes up).


> > I think that nox brings you all the way up to runlevel 3, not runlevel =
1.
>=20
> I have used nox before on a CD.  The reason I like to use the ones I
> already have is that I already know exactly what is running and what is
> not.  When I boot to single by adding "rw single" to the end of the boot
> line, I still have to start some services to get where I want to be.
> Being able to boot to the boot runlevel is much better since I have some
> things already set to start.  Openrc doesn't mount things listed in
> fstab such as /home/ portage and /var which are separate partitions.

I wouldn't expect it to mount anything other than / under single.


> >> The thing is, I do use them which is why I went to the trouble of
> >> setting them up to begin with.  I actually use them pretty regular.
> >> Just because others don't use them doesn't mean that I don't or
> >> shouldn't.

In that case you probably need runlevel 3, but just with nox?


> > The definitive answer is that the gentoo "single" softlevel does not
> > work. The Linux standard "single" or "S" or "1" runlevel works fine (but
> > I can't recall if I tried "1" recently).
> >=20
> > So the question remains what is happening with other softlevels if you
> > care to create them.
>=20
> I'm beginning to think that openrc goes back to the "old" Linux way.  In
> other words, it uses the init levels instead of softlevels. =20

Yes, this seems to be the case, although not in a clear way (otherwise why =
is=20
softlevel=3Dnonetwork working?)


> The only
> thing that makes me think that is not true, init=3Drunlevel doesn't work
> either.  I suspect that init=3D/bin/bash would work but not tested yet. =
=20

init=3D"/bin/bash" works.  You log in as root user without passwd.  Only th=
e /=20
fs is mounted as rw.  Everything else is a manual job and you must run sync=
=20
after you make any changes, or your fs may not forgive you.


> I
> have this in inittab:
>=20
> 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

If you append any number from above, like 1, or 2, or 3, etc. to the kernel=
=20
line it will work.


> I assume I could edit that to look like this:
>=20
> l0:0:wait:/sbin/rc shutdown
> l0s:0:wait:/sbin/halt -dhp
> l1:1:wait:/sbin/rc single
> l2:2:wait:/sbin/rc boot
> l3:3:wait:/sbin/rc nonetwork
> l4:4:wait:/sbin/rc default
> l5:5:wait:/sbin/rc default
> l6:6:wait:/sbin/rc reboot
> l6r:6:wait:/sbin/reboot -dk
> #z6:6:respawn:/sbin/sulogin
>=20
> The only problem with that is that there are more runlevel options than
> there are lines there for me to add.

I am not sure that you are meant to edit this manually.  I thought that if =
you=20
want another runlevel you are meant to add this using rc-update and then ad=
d=20
the services via symlinks in /etc/runlevels/<my_runlevel_name>/


> Even tho I can sort of get to what I want, I still want to get the new
> way sorted so that I can get the doc team to update the docs.  If this
> has been overlooked, then it may be that the devs will have to add this
> feature or make other changes so that this is doable.
>=20
> I also posted on the forums.  They are equally stumped.  I am beginning
> to think this was over looked somehow.

Please let us know what's the new way to do this once it settles.

=2D-=20
Regards,
Mick

--nextPart5365450.HSbuVhy3XZ
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEABECAAYFAk3SDocACgkQVTDTR3kpaLYCsQCg4RQ4mmeSHe1rkrpbKczjItfY
LAoAoIYgy+7R4/bAvA6KiJjcLHEzYkbL
=6O26
-----END PGP SIGNATURE-----

--nextPart5365450.HSbuVhy3XZ--