From owner-freebsd-hackers@FreeBSD.ORG Fri May 14 19:59:54 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E79DD1065673 for ; Fri, 14 May 2010 19:59:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 721F18FC12 for ; Fri, 14 May 2010 19:59:54 +0000 (UTC) Received: from park.js.berklix.net (p549A2CFE.dip.t-dialin.net [84.154.44.254]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id o4EJxqWm070163; Fri, 14 May 2010 19:59:52 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id o4EJxjLh035069; Fri, 14 May 2010 21:59:47 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id o4EJxNcJ070942; Fri, 14 May 2010 21:59:28 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201005141959.o4EJxNcJ070942@fire.js.berklix.net> To: Garrett Cooper From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Thu, 13 May 2010 14:13:52 EDT." <5E6781BD-D744-4BAA-A907-5FCD142A207A@gmail.com> Date: Fri, 14 May 2010 21:59:23 +0200 Sender: jhs@berklix.com Cc: freebsd-hackers@freebsd.org, Jilles Tjoelker Subject: Re: /dev/null & zero inside chroot for make release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2010 19:59:55 -0000 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