Bug 240118

Summary: ports-mgmt/poudriere: Gives BASEFS error but goes ahead to create its directories
Product: Ports & Packages Reporter: Christopher Hall <hsw>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: Open ---    
Severity: Affects Some People CC: emaste
Priority: --- Keywords: needs-patch, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (bdrewery)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   

Description Christopher Hall 2019-08-26 06:41:43 UTC
# poudriere jail -c -j 12_0-amd64 -m http -v 12.0-RELEASE
realpath: /usr/local/poudriere: No such file or directory
[00:00:00] Error: Please provide a BASEFS variable in your poudriere.conf

from zfs list:
...
zroot/poudriere                           712K   781G    88K  /zroot/poudriere
zroot/poudriere/data                      624K   781G    96K  /data
zroot/poudriere/data/.m                    88K   781G    88K  /data/.m
zroot/poudriere/data/cache                 88K   781G    88K  /data/cache
zroot/poudriere/data/images                88K   781G    88K  /data/images
zroot/poudriere/data/logs                  88K   781G    88K  /data/logs
zroot/poudriere/data/packages              88K   781G    88K  /data/packages
zroot/poudriere/data/wrkdirs               88K   781G    88K  /data/wrkdirs

Unfortunately I already have a /data so poudriere gets mounted over it.
This happens with both poudriere and poudriere-devel ports.

setting BASEFS=/data/poudriere is the same, it appears I have to:
# zfs create zroot/data/poudriere

So workaround is to always create the BASFS as a zfs dataset before initial jail create.