Subject: Re: feature request: root file system change
To: Martin Husemann <>
From: Lubomir Sedlacik <>
List: tech-kern
Date: 04/16/2005 22:06:38
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 16, 2005 at 09:54:20PM +0200, Martin Husemann wrote:
> On Sat, Apr 16, 2005 at 08:16:39PM +0200, Lubomir Sedlacik wrote:
> > there are couple of hackish workarounds, such as chrooting to the
> > newly mounted filesystem, insane amount of symlinks or nullmounts.
> > i'd like to avoid them all.
> Why can't the kernel run "something" (like some rc script) that makes
> sure root is mountable/mounted and after that process exits continue
> the usual exec init way?

but at this point you already _have_ / mounted, it's the md(4) file
system.  you need to run cgdconfig(8) from somewhere, right?

> Any already running kernel threads that do care about their current
> directory (I can't thing of any right now) could receive a special
> notification and chdir after / is valid.


-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.6 (NetBSD)