/dev/null & zero inside chroot for make release

Jilles Tjoelker jilles at stack.nl
Thu May 13 18:06:08 UTC 2010


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 ).

Mount devfs in your chroot. Then use devfs(8) to limit what's visible in
that particular devfs, if you want.

-- 
Jilles Tjoelker


More information about the freebsd-hackers mailing list