Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2010 14:13:52 -0400
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Jilles Tjoelker <jilles@stack.nl>
Cc:        freebsd-hackers@freebsd.org, "Julian H. Stacey" <jhs@berklix.com>
Subject:   Re: /dev/null & zero inside chroot for make release
Message-ID:  <5E6781BD-D744-4BAA-A907-5FCD142A207A@gmail.com>
In-Reply-To: <20100513180606.GA43485@stack.nl>
References:  <201005131745.o4DHiw7x016383@fire.js.berklix.net> <20100513180606.GA43485@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5E6781BD-D744-4BAA-A907-5FCD142A207A>