Subject: Re: how to run etcupdate from a readonly filesystem?
To: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
From: Julio Merino <jmmv@menta.net>
List: current-users
Date: 03/05/2003 20:22:35
You can extract the etc.tgz set somewhere, say /tmp/ and then tell etcupdate
to use that one instead of sources. IIRC, with the -b option.



On Wed, 5 Mar 2003 20:18:19 +0100
Ronald van der Pol <Ronald.vanderPol@rvdp.org> wrote:

> I have build current on a fileserver and installed successfully
> on a client that NFS mounts that filesystem readonly.
>=20
> I now have difficulty with etcupdate. I have tried various
> environment variables, but have not found the magic combination
> yet. E.g.
>=20
> ---------------
> # UNPRIVED=3D1 UPDATE=3D1 DESTDIR=3D/net/NetBSD/build-i386 \
> MAKEOBJDIRPREFIX=3D/net/NetBSD/obj-i386  \
> TOOLDIR=3D/net/NetBSD/tools-i386 etcupdate -s /net/NetBSD/src -v
>=20
> *** WARNING: /tmp/temproot already exists
>=20
> Continue previously aborted update? (y/[n])=20
> Remove the old /tmp/temproot? (y/[n]) y
> *** Removing /tmp/temproot
> *** Creating /tmp/temproot
> *** Populating /tmp/temproot from /net/NetBSD/src
> (cd /a/10.0.0.2/export/NetBSD-current/src && make NOPOSTINSTALL=3D1 build)
> Build started at: Wed Mar  5 20:02:28 CET 2003
> (cd /a/10.0.0.2/export/NetBSD-current/src/tools && make dependall)
> dependall =3D=3D=3D> host-mkdep
> rm -f host-mkdep
> CC=3Dcc CFLAGS=3D-O LDFLAGS=3D  /a/10.0.0.2/export/NetBSD-current/src/too=
ls/host-mkdep/configure --cache-file=3Dconfig.cache
> /a/10.0.0.2/export/NetBSD-current/src/tools/host-mkdep/configure: cannot =
create conf10109.file: read-only file system
> =89=C3=A1s5e
> =C0
>  =FB: cannot create config.log: read-only file system
> *** Error code 2
>=20
> Stop.
> make: stopped in /a/10.0.0.2/export/NetBSD-current/src/tools/host-mkdep
> *** Error code 1
>=20
> Stop.
> make: stopped in /a/10.0.0.2/export/NetBSD-current/src/tools/host-mkdep
> *** Error code 1
>=20
> Stop.
> make: stopped in /a/10.0.0.2/export/NetBSD-current/src/tools
> *** Error code 1
>=20
> Stop.
> make: stopped in /a/10.0.0.2/export/NetBSD-current/src
> *** Error code 1
>=20
> Stop.
> make: stopped in /a/10.0.0.2/export/NetBSD-current/src
> *** Error code 1
>=20
> Stop.
> make: stopped in /a/10.0.0.2/export/NetBSD-current/src
> #
> ---------------
>=20
> BTW, the control characters are not printed when I remove the
> MAKEOBJDIRPREFIX variable. Strange...
>=20
> Does anybody know the magic combination of variables?
>=20
> 	rvdp


--=20
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/