/dev/null & zero inside chroot for make release

Garrett Cooper yanefbsd at gmail.com
Thu May 13 18:13:44 UTC 2010


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 ).
> 
> Mount devfs in your chroot. Then use devfs(8) to limit what's visible in
> that particular devfs, if you want.

	You may also need to run /etc/rc.d/ldconfig the first time as well.
HTH,
-Garrett



More information about the freebsd-hackers mailing list