poudriere 3.1.2: bulk fails and deletes jail

Stefan Ehmann shoesoft at gmx.net
Thu Apr 2 17:19:09 UTC 2015

The following commands work as expected with poudriere 3.1.1:

# poudriere jail -c -v 10.1-RELEASE -a amd64 -j 101amd64
# poudriere bulk -j 10amd64 ports-mgmt/poudriere

After upgrade to 3.1.2 it fails:

# poudriere bulk -j 101amd64 ports-mgmt/poudriere
[00:00:00] ====>> Creating the reference 
jail.../usr/local/share/poudriere/bulk.sh: cannot create 
/usr/local/poudriere/jails/101amd64/usr/.cpignore: No such file or directory
/usr/local/share/poudriere/bulk.sh: cannot create 
/usr/local/poudriere/jails/101amd64/usr/lib/.cpignore: No such file or 
[00:00:04] ====>> Mounting system devices for 101amd64-default
[00:00:04] ====>> Mounting ports/packages/distfiles
[00:00:04] ====>> Stashing existing package repository
[00:00:04] ====>> Mounting packages from: 
[00:00:04] ====>> Copying /var/db/ports from: 
/usr/local/share/poudriere/bulk.sh: cannot create 
/usr/local/poudriere/data/.m/101amd64-default/ref/etc/make.conf: No such 
file or directory
[00:00:04] ====>> Cleaning up
[00:00:04] ====>> Umounting file systems

And worse: The contents of the jail are deleted:
# du -sh /usr/local/poudriere/jails/101amd64/
4.0K    /usr/local/poudriere/jails/101amd64/

The problem probably only occurs in specific configurations. Otherwise, 
I would have expected several reports by now.

# diff poudriere.conf.sample poudriere.conf | grep \>
 > NO_ZFS=yes
 > USE_TMPFS=all

More information about the freebsd-ports mailing list