Subject: Re: feature request: root file system change
To: Martin Husemann <martin@duskware.de>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-kern
Date: 04/16/2005 22:06:38
--BLwZsoChvJp3+clz
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.
>=20
> 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.

regards,

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

--BLwZsoChvJp3+clz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFCYXBOiwjDDlS8cmMRAs46AJ0WIzBfPThfAADU7b3qnPs4ahMjPQCbB7jZ
YdqswUKoRFa7/zClXvqhj+I=
=guIt
-----END PGP SIGNATURE-----

--BLwZsoChvJp3+clz--