buildworld inside a jail

Harald Schmalzbauer h at schmalzbauer.de
Fri Feb 6 07:24:53 PST 2004


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 at freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040206/7d2b72fc/attachment.bin


More information about the freebsd-questions mailing list