aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-chbuild
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-08-21 20:47:47 +0000
committermerakor <cem@ckyln.com>2020-08-21 20:47:47 +0000
commit46f3339c61b06196b448afccd23130d990de1ce3 (patch)
tree1a1f4d3ab4999e8596414f1c543f3e913463f2ba /contrib/cpt-chbuild
parentafce4eecd5609b90da101816fe2c61ef073d6895 (diff)
downloadcpt-46f3339c61b06196b448afccd23130d990de1ce3.tar.gz
cpt-chbuild: run 'pre-chroot' hook before entering chroot.
FossilOrigin-Name: 8872a131a842fc34efabc00fd1352b68bf6e084424fe5fa63db4105e29282cf7
Diffstat (limited to 'contrib/cpt-chbuild')
-rwxr-xr-xcontrib/cpt-chbuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/cpt-chbuild b/contrib/cpt-chbuild
index 6a619ef..bff9a34 100755
--- a/contrib/cpt-chbuild
+++ b/contrib/cpt-chbuild
@@ -52,5 +52,7 @@ cp -a carbs-chroot "chroot-$pid"
CPT_ROOT=$PWD/chroot-$pid cpt-install "$@"
}
+run_hook pre-chroot "" "$PWD/chroot-$pid"
+
log "Entering chroot"
as_root sh -c "cpt-chroot chroot-$pid; rm -rf chroot-$pid"