aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
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"