Hi Hackers, Problem with /dev/null & /dev/zero inside a chroot: I wanted to build a release from inside a chroot ( So /var/db/pkg matches what's required by make release, without changing packages on outside the chroot, + Also to experiment with http://lists.freebsd.org/pipermail/freebsd-stable/2010-May/056705.html ) Using 8.0-Release & amd64 I built a chroot, (from memory, approx by: cd /usr/src ; make world setenv DESTDIR /usrb/chroot cd /usr/src/etc ; make distrib-dirs cd /usr/src ; make install ) source `which unsetenv.csh` # remove my aliases etc. chroot /usrb/chroot cd /dev rm null zero ; mknod null c 0 31 ; mknod zero c 0 32 cd /usr/src ; make make: cannot open /dev/null. "/usr/src/Makefile", line 111: warning: "/usr/bin/env -i PATH=/sbin:/bin:/usr/sbin:/usr/bin make __MAKE_CONF=/etc/make.conf -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status make: cannot open /dev/null. "/usr/src/Makefile.inc1", line 157: warning: "MAKEFLAGS= CPUTYPE=dummy make -f /dev/null -m /usr/src/share/mk -V CPUTYPE" returned non-zero status "/usr/src/Makefile.inc1", line 159: CPUTYPE global should be set with ?=. *** Error code 1 cd /dev/ rm null zero ; touch null cd /usr/src ; make Runs OK to here ===> sys/boot/i386/boot2 (all) dd if=/dev/zero of=boot2.ldr bs=512 count=1 dd: /dev/zero: No such file or directory *** Error code 1
What sort of null & zero should be in chroot ? man mknod ... deprecated ... Should I be running a devfs (I'm not currently) Or a jail ? (I dont really want that level of encapsulation ). Cheers, Julian - - -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text, Not HTML quoted-printable Base64 http://www.asciiribbon.org - ------- End of Unsent Draft ------- End of Forwarded Message _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"