/dev/null & zero inside chroot for make release
Julian H. Stacey
jhs at berklix.com
Fri May 14 19:59:55 UTC 2010
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
More information about the freebsd-hackers
mailing list