Date: Fri, 14 May 2010 21:59:23 +0200 From: "Julian H. Stacey" <jhs@berklix.com> To: Garrett Cooper <yanefbsd@gmail.com> Cc: freebsd-hackers@freebsd.org, Jilles Tjoelker <jilles@stack.nl> Subject: Re: /dev/null & zero inside chroot for make release Message-ID: <201005141959.o4EJxNcJ070942@fire.js.berklix.net> In-Reply-To: Your message "Thu, 13 May 2010 14:13:52 EDT." <5E6781BD-D744-4BAA-A907-5FCD142A207A@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Garrett Cooper wrote: > On May 13, 2010, at 2:06 PM, Jilles Tjoelker wrote: > > > On Thu, May 13, 2010 at 07:44:58PM +0200, Julian H. Stacey wrote: > >> Problem with /dev/null & /dev/zero inside a chroot: > >> I wanted to build a release from inside a chroot > > > >> 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 ). > > Jilles Tjoelker wrote > > Mount devfs in your chroot. Then use devfs(8) to limit what's visible in > > that particular devfs, if you want. mount | grep devfs devfs on /dev (devfs, local, multilabel) devfs on /var/named/dev (devfs, local, multilabel) Man mount doesnt show syntax. >From man devfs & /etc/rc.subr /etc/rc.d/named I found this works: mount -t devfs dev /usrb/chroot/dev I sent in a send-pr to add a hint for that to man mount. Garrett Cooper wrote: > You may also need to run /etc/rc.d/ldconfig the first time as well. I'll read it. Thanks Jilles & Garrett :-) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005141959.o4EJxNcJ070942>