cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 6ed9614896df9b9dc6b4ad4511e48a8fc9afaac0
parent 6fdea449f9f4fc5e2fc0132a904f251e00c44115
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 21 Jun 2020 23:18:54 +0300

kiss-chbuild: install extra packages if specified

Diffstat:
Mcontrib/kiss-chbuild | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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"