Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove zpool
altroot
from mountpoint
when creating datasets.
If `${ZPOOL}` has `altroot` set, `${ZROOTFS}` can only be mounted under `altroot`. This means `${BASEFS}` _must_ begin with `altroot`. In `poudriere.conf`, the setting would look something like: `BASEFS=<altroot>/rest/of/path`. However, `altroot` is always prepended to whatever path is set to `mountpoint` at the time of dataset creation. What happens is that `${ZROOTFS}` is actually mounted on `<altroot>${BASEFS}`, while `poudriere` thinks it's on `${BASEFS}`. To fix the problem, simply check if `altroot` is set and remove it from `mountpoint` when creating datasets. Their `mountpoint`s will then be prepended with `altroot`, which matches `poudriere`'s internal records.
- Loading branch information