From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 07:21:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63C5416A4E7 for ; Fri, 6 Feb 2004 07:21:28 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98AF743D5F for ; Fri, 6 Feb 2004 07:21:14 -0800 (PST) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id i16FNbIi097639; Fri, 6 Feb 2004 16:23:37 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id i16FNbXh097638; Fri, 6 Feb 2004 16:23:37 +0100 (CET) (envelope-from mail25@bzerk.org) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Fri, 6 Feb 2004 16:23:37 +0100 From: Ruben de Groot To: Harald Schmalzbauer Message-ID: <20040206152337.GA97579@ei.bzerk.org> References: <200402060259.07248@harrymail> <200402061350.04442@harrymail> <6.0.1.1.1.20040206125718.032e6420@imap.sfu.ca> <200402061607.19686@harrymail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200402061607.19686@harrymail> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org cc: Colin Percival Subject: Re: buildworld inside a jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 15:21:28 -0000 On Fri, Feb 06, 2004 at 04:07:15PM +0100, Harald Schmalzbauer typed: Content-Description: signed data > On Friday 06 February 2004 14:06, Colin Percival wrote: > > At 12:49 06/02/2004, Harald Schmalzbauer wrote: > > >On Friday 06 February 2004 03:24, Harald Schmalzbauer wrote: > > > > On Friday 06 February 2004 03:05, Colin Percival wrote: > > > > > * The contents of /dev inside the jail? > > > > > *SNIP* > > >I found out that if I don't hide any device it finishes compiling!?!?!? > > > > Interesting. I create a jailed /dev with the following commands: > > > > mount -t devfs devfs ${BASEDIR}/jail/dev > > devfs rule -s 10 delset > > devfs rule -s 10 add hide > > devfs rule -s 10 add path null unhide > > devfs rule -s 10 add path zero unhide > > devfs rule -s 10 add path fd unhide > > devfs rule -s 10 add path 'fd/*' unhide > > devfs rule -s 10 add path 'std*' unhide > > devfs -m ${BASEDIR}/jail/dev ruleset 10 > > devfs -m ${BASEDIR}/jail/dev rule applyset > > > > and you've certainly got all of those devices. > > Ha, found my mistake. I had /dev/fd but not /dev/fd/* > When unhiding fd/* like you (and the default) everything is compiling fine! > But why do I need the floppydisk? Btw. I don't have a floppy in this machine. It's not floppy disks. These are File Descriptors. checkout what /dev/stdin, stdout and stderr are symlinked to. Ruben > Thanks, > > -Harry > > > > > >What device could be needed to compile source code? > > > > I'm not sure why this would make any difference, but try > > with just /dev/null, /dev/zero, /dev/fd, /dev/fd/*, and > > /dev/std*. > > Also, try listing the contents of /dev before starting > > the buildworld, to make sure that nothing is missing. > > > > Colin Percival > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org"