aboutsummaryrefslogtreecommitdiff
path: root/release/packages
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-02-19 02:35:43 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-02-19 02:35:43 +0000
commitac92e1359b3f4a9698fb17bd15e67c39933b1487 (patch)
tree343a9de188e9c491dac36d7999231eceb1510347 /release/packages
parent946966d161b544be71f482f1441ca9dc7390fd84 (diff)
downloadsrc-ac92e1359b3f4a9698fb17bd15e67c39933b1487.tar.gz
src-ac92e1359b3f4a9698fb17bd15e67c39933b1487.zip
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.
Notes
Notes: svn path=/head/; revision=358092
Diffstat (limited to 'release/packages')
-rw-r--r--release/packages/caroot.ucl3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/packages/caroot.ucl b/release/packages/caroot.ucl
index d603f9524ddf..f0d1730f9976 100644
--- a/release/packages/caroot.ucl
+++ b/release/packages/caroot.ucl
@@ -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
}