From 5934c0c2af5bd4764b065edf266a9379891e1bae Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Mon, 27 Oct 2008 23:52:08 -0400 Subject: [PATCH] initchroot: put custom installed packages on hold Holger's suggestion was a good one; do this automatically. Signed-off-by: Andres Salomon --- initchroot.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2