Subject: problem installing with src/release on readonly NFS filesystem
To: None <current-users@NetBSD.org>
From: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
List: current-users
Date: 04/05/2004 13:14:41
I have build the latest -current on a fileserver with:
fileserver$ sh build.sh -u -U \
-T /export/NetBSD-current/tools-i386 \
-M /export/NetBSD-current/obj-i386 \
-D /export/NetBSD-current/build-i386 \
-R /export/NetBSD-current/release-i386 \
release

(I also did a 'build.sh .... sets').

Now I try to install it on a client that mount the /export/NetBSD-current
above readonly.

This is what happens:

client# sh  build.sh -o -u -U  -T /mnt/foo/tools-i386 -M /mnt/foo/obj-i386 -D /mnt/foo/build-i386 -R /mnt/foo/release-i386 -V MKTOOLS=no  -w /tmp/foo install=/
===> build.sh command: build.sh -o -u -U -T /mnt/foo/tools-i386 -M /mnt/foo/obj-i386 -D /mnt/foo/build-i386 -R /mnt/foo/release-i386 -V MKTOOLS=no -w /tmp/foo install=/
===> build.sh started: Mon Apr  5 13:01:06 CEST 2004
===> MACHINE:          i386
===> MACHINE_ARCH:     i386
===> TOOLDIR path:     /mnt/foo/tools-i386
===> DESTDIR path:     /mnt/foo/build-i386
===> RELEASEDIR path:  /mnt/foo/release-i386
===> makewrapper:      /tmp/foo
===> Updated /tmp/foo
(cd /mnt/foo/src/distrib/sets &&  /mnt/foo/tools-i386/bin/nbmake INSTALLDIR=/ INSTALLSETS= installsets)
cd /mnt/foo/src/distrib/sets &&  DESTDIR=/mnt/foo/build-i386  MACHINE=i386 MACHINE_ARCH=i386  CKSUM=/mnt/foo/tools-i386/bin/nbcksum MAKE=/mnt/foo/tools-i386/bin/nbmake MTREE=/mnt/foo/tools-i386/bin/nbmtree  MKTEMP=/mnt/foo/tools-i386/bin/nbmktemp PAX=/mnt/foo/tools-i386/bin/nbpax HOST_SH=sh  sh ./maketars -d /mnt/foo/build-i386  -M /mnt/foo/build-i386/METALOG -N /mnt/foo/src/etc   -i / 
./maketars: cannot create /mnt/foo/build-i386/etc/mtree/set.base: permission denied
^Cbash-2.05#

Using 'sh -x build.sh ...' gives:

[...]
===> Updated /tmp/foo
+ arg=/
+ [ / = / ]
+ [ NetBSD != NetBSD ]
+ [ i386 != i386 ]
+ installworld /
+ dir=/
+ /tmp/foo INSTALLWORLDDIR=/ installworld
(cd /mnt/foo/src/distrib/sets &&  /mnt/foo/tools-i386/bin/nbmake INSTALLDIR=/ INSTALLSETS= installsets)
cd /mnt/foo/src/distrib/sets &&  DESTDIR=/mnt/foo/build-i386  MACHINE=i386 MACHINE_ARCH=i386  CKSUM=/mnt/foo/tools-i386/bin/nbcksum MAKE=/mnt/foo/tools-i386/bin/nbmake MTREE=/mnt/foo/tools-i386/bin/nbmtree  MKTEMP=/mnt/foo/tools-i386/bin/nbmktemp PAX=/mnt/foo/tools-i386/bin/nbpax HOST_SH=sh  sh ./maketars -d /mnt/foo/build-i386  -M /mnt/foo/build-i386/METALOG -N /mnt/foo/src/etc   -i / 
^C+ exit 1
+ cd /
+ rm -r -f /tmp/nbbuild3123

What am I doing wrong?

	rvdp