caroot pkg: pass through the pkg -r rootdir as DESTDIR

If we're trying to bootstrap a different root with pkgbase, we should be
doing the right thing with caroot.
This commit is contained in:
Kyle Evans 2020-02-19 02:35:43 +00:00
parent 946966d161
commit ac92e1359b

View File

@ -20,6 +20,7 @@ scripts: {
# files being added or removed, we should use it instead to gate the
# rehash.
post-install = <<EOD
[ -x /usr/sbin/certctl ] && /usr/sbin/certctl rehash
[ -x /usr/sbin/certctl ] && env DESTDIR=${PKG_ROOTDIR} \
/usr/sbin/certctl rehash
EOD
}