Subject: Re: read only /usr/src & build.sh
To: None <netbsd-help@NetBSD.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: netbsd-help
Date: 11/10/2007 14:19:52
Aleksey Cheusov --> netbsd-help (2007-11-10 14:45:03 +0200):
> > Aleksey Cheusov --> netbsd-help (2007-11-10 12:30:10 +0200):
>  >> Is it really possible to build NetBSD with read only /usr/src?
> 
> > Yes. When building e.g. a release using build.sh, you need to specify
> > either -O or -M, and all of -T, -D and -R. Of course their arguments
> > should be paths to writable directories.
> 
> When I add -U flag it doesn't work.

Hmm, works fine here on -current and in a 4.0 chroot on -current:

$ mount | grep /usr/src
/a/src/nbsd/4 on /usr/src type null (read-only, nosuid, nodev, local)
$ cd /usr/src
$ ./build.sh -U -O ~/temp/obj -t ~/temp/obj/tools tools
===> build.sh command: ./build.sh -U -O /home/build/temp/obj -T /home/build/temp/obj/tools tools
===> build.sh started: Sat Nov 10 13:09:17 UTC 2007
===> NetBSD version:   4.0_RC4
===> MACHINE:          i386
===> MACHINE_ARCH:     i386
===> Build platform:   NetBSD 4.0_RC4 i386
===> HOST_SH:          /bin/sh
===> No /home/build/temp/obj/tools/bin/nbmake, needs building.
===> Bootstrapping nbmake
[...]
rm -f PREVIOUSTOOLDIR
echo /home/build/temp/obj/tools >PREVIOUSTOOLDIR
dependall ===> host-mkdep
rm -f host-mkdep
[...]


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~