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 ) id 1R58W5-0007Kz-4K for garchives@archives.gentoo.org; Sun, 18 Sep 2011 03:58:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3481921C082; Sun, 18 Sep 2011 03:57:55 +0000 (UTC) Received: from svr-us4.tirtonadi.com (unknown [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 1E3FB21C0D7 for ; Sun, 18 Sep 2011 03:56:59 +0000 (UTC) Received: from mail-fx0-f53.google.com ([209.85.161.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1R58V1-003bQ4-Ua for gentoo-user@lists.gentoo.org; Sun, 18 Sep 2011 10:57:00 +0700 Received: by fxh2 with SMTP id 2so3384505fxh.40 for ; Sat, 17 Sep 2011 20:56:55 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.39.25 with SMTP id d25mr2311554fae.131.1316318214993; Sat, 17 Sep 2011 20:56:54 -0700 (PDT) Received: by 10.223.95.207 with HTTP; Sat, 17 Sep 2011 20:56:54 -0700 (PDT) Received: by 10.223.95.207 with HTTP; Sat, 17 Sep 2011 20:56:54 -0700 (PDT) In-Reply-To: References: <4E74FCC5.5070000@gmail.com> <4E750693.7020602@gmail.com> <4E750E87.4010201@gmail.com> <4E751EDB.4070303@gmail.com> <4E7553C8.8080508@gmail.com> Date: Sun, 18 Sep 2011 10:56:54 +0700 Message-ID: Subject: Re: [gentoo-user] Making a init thingy. Step two I guess. From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=001517477f969db70104ad2f377b X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: X-Archives-Hash: 90eba279404ceee5e91e0c8a892045f0 --001517477f969db70104ad2f377b Content-Type: text/plain; charset=UTF-8 On Sep 18, 2011 9:22 AM, "Michael Mol" wrote: > > On Sat, Sep 17, 2011 at 10:13 PM, Dale wrote: > > Michael Mol wrote: > > [snippage] > > > Ahhhhh. I see now. So, it mounts proc and sys but that is in the init then > > it mounts the real root outside the init. Then it umounts the proc and sys > > under the init and then switches to the real root and starts init there. > > > > Where does /usr and /var come in here? Isn't the init supposed to mount > > that too? Do I add that myself? If so, when to fsck get ran? > > From the look of it, yeah, it'd be your responsibility to do that in > the "# Do your stuff here." area. > > Probably why the script has a line that says: echo "This script mounts > rootfs and boots it up, nothing more!" > Of course, you have to remember to mount usr in /mnt/root instead of in / That switch_root thing, you know. Rgds, --001517477f969db70104ad2f377b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sep 18, 2011 9:22 AM, "Michael Mol" <mikemol@gmail.com> wrote:
>
> On Sat, Sep 17, 2011 at 10:13 PM, Dale <rdalek1967@gmail.com> wrote:
> > Michael Mol wrote:
>
> [snippage]
>
> > Ahhhhh. =C2=A0I see now. =C2=A0So, it mounts proc and sys but tha= t is in the init then
> > it mounts the real root outside the init. =C2=A0Then it umounts t= he proc and sys
> > under the init and then switches to the real root and starts init= there.
> >
> > Where does /usr and /var come in here? =C2=A0Isn't the init s= upposed to mount
> > that too? =C2=A0Do I add that myself? =C2=A0If so, when to fsck g= et ran?
>
> From the look of it, yeah, it'd be your responsibility to do that = in
> the "# Do your stuff here." area.
>
> Probably why the script has a line that says: echo "This script m= ounts
> rootfs and boots it up, nothing more!"
>

Of course, you have to remember to mount usr in /mnt/root instead of in = /

That switch_root thing, you know.

Rgds,

--001517477f969db70104ad2f377b--