From: Andres Salomon Date: Tue, 28 Oct 2008 03:52:08 +0000 (-0400) Subject: initchroot: put custom installed packages on hold X-Git-Tag: v0.3~14 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=commitdiff_plain;h=5934c0c2af5bd4764b065edf266a9379891e1bae initchroot: put custom installed packages on hold Holger's suggestion was a good one; do this automatically. Signed-off-by: Andres Salomon --- diff --git a/initchroot.sh b/initchroot.sh index e359c5d..d71f9ec 100755 --- a/initchroot.sh +++ b/initchroot.sh @@ -146,6 +146,8 @@ for i in $k; do wget --continue -O cache/${pkg} ${i} cp cache/${pkg} ${ROOT_DIR}/${pkg} (chroot ${ROOT_DIR} dpkg -i /${pkg}) + pkgbase=$(echo $pkg | cut -d_ -f1) + echo $pkgbase hold | (chroot ${ROOT_DIR} dpkg --set-selections) rm -f ${ROOT_DIR}/${pkg} done