aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-06-21 20:18:54 +0000
committermerakor <cem@ckyln.com>2020-06-21 20:18:54 +0000
commit50247c2c094055657328484dc3ebf7adaa000ebb (patch)
tree815960fb39945db6901a58a8593c5b7d24b2fcf5 /contrib
parent6c043469284ce2ffed111c2e90b3b2f25262cd14 (diff)
downloadcpt-50247c2c094055657328484dc3ebf7adaa000ebb.tar.gz
kiss-chbuild: install extra packages if specified
FossilOrigin-Name: 78e2b53305c600d6dc41b5f1662c22ad18f25cff66b7af08f5ed4a6093001c06
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/kiss-chbuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/kiss-chbuild b/contrib/kiss-chbuild
index 2caf87e..98aa97c 100755
--- a/contrib/kiss-chbuild
+++ b/contrib/kiss-chbuild
@@ -62,5 +62,10 @@ sh256 carbs-rootfs.tar.xz | diff - carbs-rootfs.tar.xz.sum ||
log "Creating temporary chroot"
cp -a carbs-chroot "chroot-$pid"
+[ "$1" ] && {
+ log "Installing extra packages"
+ KISS_ROOT=$PWD/chroot-$pid kiss i "$@"
+}
+
log "Entering chroot"
su -c "kiss-chroot chroot-$pid; rm -rf chroot-$pid"