From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 07:24:53 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 1023016A4CE for ; Fri, 6 Feb 2004 07:24:53 -0800 (PST) Received: from mail-in.m-online.net (mail-in.m-online.net [62.245.150.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0925343D31 for ; Fri, 6 Feb 2004 07:24:50 -0800 (PST) (envelope-from h@schmalzbauer.de) Received: from mail.m-online.net (svr14.m-online.net [192.168.3.144]) by svr8.m-online.net (Postfix) with ESMTP id E90C625011; Fri, 6 Feb 2004 16:24:48 +0100 (CET) Received: from cale.flintsbach.schmalzbauer.de (ppp-62-245-161-131.mnet-online.de [62.245.161.131]) by mail.m-online.net (Postfix) with ESMTP id A9C6143E12; Fri, 6 Feb 2004 16:24:48 +0100 (CET) From: Harald Schmalzbauer To: Ruben de Groot Date: Fri, 6 Feb 2004 16:24:43 +0100 User-Agent: KMail/1.5.4 References: <200402060259.07248@harrymail> <200402061607.19686@harrymail> <20040206152337.GA97579@ei.bzerk.org> In-Reply-To: <20040206152337.GA97579@ei.bzerk.org> X-Birthday: 06 Oktober 1972 X-Name: Harald Schmalzbauer X-Phone1: +49 (0) 163 555 3237 X-Phone2: +49 (0) 89 18947781 X-Address: Munich, 80686 X-Country: Germany MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_AH7IAGHNVvEdFmp"; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200402061624.48376@harrymail> 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:24:53 -0000 --Boundary-02=_AH7IAGHNVvEdFmp Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Description: signed data Content-Disposition: inline On Friday 06 February 2004 16:23, Ruben de Groot wrote: > 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. oic. I saw the linking and was a bit confused. Now I'm clear :) Thank you, -Harry > > 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" --Boundary-02=_AH7IAGHNVvEdFmp Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQBAI7HABylq0S4AzzwRApBBAJ0cEjTpnHkkK7yTPgdjU8o0TqIB5wCfdnWH swE8cyzi9c2TWTAcJovZLqg= =cn2b -----END PGP SIGNATURE----- --Boundary-02=_AH7IAGHNVvEdFmp--