Re: poudriere: setting up jail failes

From: Matthias Apitz <guru_at_unixarea.de>
Date: Fri, 8 Aug 2014 20:57:13 +0200
El día Friday, August 08, 2014 a las 07:12:15PM +0200, Kurt Jaeger escribió:

> Hi!
> 
> > The host where poudriere is running is:
> > 
> > # uname -a
> > FreeBSD vm-tiny-r255948 10.0-ALPHA4 FreeBSD 10.0-ALPHA4 #1: Fri Oct 18
> > 12:10:57 CEST 2013     guru_at_aurora.Sisis.de:/usr/obj/usr/src/sys/GENERIC
> > i386
> > 
> > i.e. a CURRENT from Oct 2013 (r255948). Does this mean I should update
> > the host where poudriere is running before?
> 
> Yes. Go for 10.0-REL p7, then retry.

Can you explain, why?

If one looks at the code which is executed in the jail, it looks like this
(for better readability I have changed the colons ':' in the PATH by
newlines):

PATH=/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/usr/sbin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/usr/bin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/usr/games
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/bin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/usr/sbin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/usr/bin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/usr/games
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/usr/sbin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/usr/bin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/usr/games
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/legacy/bin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/usr/sbin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/usr/bin
/usr/obj/usr/local/poudriere/jails/freebsd-head/usr/src/tmp/usr/games
/tmp/install.l1aks4sC
make LOCAL_MTREE= distrib-dirs
mtree -N /usr/local/poudriere/jails/freebsd-head/usr/src/etc -deU -f
/usr/local/poudriere/jails/freebsd-head/usr/src/etc/mtree/BSD.root.dist
-p /usr/local/poudriere/jails/freebsd-head/
mtree: illegal option -- N
usage: mtree [-LPUcdeinqruxw] [-f spec] [-f spec] [-K key] [-k key] [-p path] [-s seed] [-X excludes]
*** Error code 1

i.e. the tool 'mtree' is run from a hardcoded PATH from inside the jail
which was just compiled. Why the 'mtree' from a Makefile in CURRENT is
called with the -N flag, or why the 'mtree' from CURRENT does not
understand the -N flag?

I do not have a SVN checked out CURRENT to look into at the moment, but
I think either the Makefile or mtree is broken in CURRENT.

And, btw., why is poudriere removing all the jail when an error occures?
Wouldn't it be better to let it there to have a look into and remove it
on the next run?

> 
> -- 
>                          6 years to go !

6 years to go to where or what?

Thanks

	matthias

-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: guru_at_unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-170-4527211       |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
Received on Fri Aug 08 2014 - 16:57:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC