Subject: Re: Read-only root filesystem
To: matthew sporleder <msporleder@gmail.com>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-users
Date: 05/21/2007 16:44:32
--WfCN8Biv230Eu90c
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 21, 2007 at 09:19:41AM -0400, matthew sporleder wrote:
> On 5/21/07, Ignatios Souvatzis <ignatios@cs.uni-bonn.de> wrote:
> >On Sun, May 20, 2007 at 11:30:12AM +0200, Mikael Nystr=F6m wrote:
> >
> >> I have other partitions that are mounted read-write so every file
> >> that needs to be updated regulary resides on these partitions
> >> (actually softlinks for motd/resolv.conf etc), but how about /dev?
> >> Don't I need it to be read-write?
> >
> >Modern answer:
> >
> >Remove all device nodes from it. /sbin/init will create a MFS and build
> >the device nodes when you boot.
> >
> >Ancient answer:
> >
> >http://2002.eurobsdcon.org/papers/#souvatzis
> >http://theory.cs.uni-bonn.de/~ignatios/papers/eurobsdcon2002.sharedroot.=
ps
> >
>=20
>=20
> I can't help but think this would be better in rc.conf as something like:
> mfsdev=3DYES
>=20
> or whatever.

Except that init(8) needs to setup that very early and can't be bothered
parsing rc.conf.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

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

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

iQEVAwUBRlGwUNgoQloHrPnoAQJ9dAf+PymvnxJkQQbi2L2YC9F4Xk6eWJRedFtq
wWi3QQThFHj26OGiNGo2EF356k9OJ9aLZ8XpCGvuryGxaG7Pdr0R/egcUADi3ciH
rR/nmpXMtS61GNCmPVOtUaaZwwY9EGB6Xz8RKuJezKOy2uQ5H1WrkIagqlj7j6gj
qh615DwatGPLlPk3S7qmC1ejO0IgJPBRu5FCymxyQ1w9QQqXvJhyXaW7rywSs4qA
PpBMZqc+YnjOao/UZ05VYuUG8v3hzNFN9VaDH8mwkTe6eQwNBMt+BaiCujbscrT7
Kjl4aQu0wQmFzwsrtxhK4XTtbfmgwYlbjU0Nr+2Y8zNIwxJkbXGiow==
=H9Ds
-----END PGP SIGNATURE-----

--WfCN8Biv230Eu90c--