Subject: feature request: root file system change
To: None <tech-kern@NetBSD.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-kern
Date: 04/16/2005 20:16:39
--nbhHrEdisCJIsSEl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

background: i'd like to have the whole hard drive on my laptop
reside on cgd(4), including / file system.  the idea is quite simple:
build a kernel with md(4) file system including cgdconfig(8) and cgd
layout configuration, boot from e.g., usb disk-on-key, configure cgd(4)
devices, continue booting from the real / file system.

the problem is that there is no clear solution to achieve the last step.

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.

linux solved this issue with boot memory disks (initrd) with
pivot_root(2)/pivot_root(8) combo,

 http://www.annodex.net/cgi-bin/man/man2html?pivot_root+2
 http://www.annodex.net/cgi-bin/man/man2html?pivot_root+8

what do you think about adding similar syscall to NetBSD?


regards,

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

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

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

iD8DBQFCYVaHiwjDDlS8cmMRAjN9AKCLLGGTAkdwMY9vcyJob8loPHvhpQCfWDVn
SAOpg4GdONYZrMrk0VLdFDk=
=POco
-----END PGP SIGNATURE-----

--nbhHrEdisCJIsSEl--