From c79e9d8962ac442feac637768bbe87c951114f60 Mon Sep 17 00:00:00 2001 From: Josip Rodin Date: Mon, 5 Oct 2009 14:55:39 +0200 Subject: [PATCH] apt-get install unutar chroota radi sasvim normalno, d'oh; dodao provjeru jesu li vec instalirani paketi koje trebamo, i ako ne, instalira ih --- linux/gen-vz-template.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/linux/gen-vz-template.sh b/linux/gen-vz-template.sh index d065dac..3d2fe03 100755 --- a/linux/gen-vz-template.sh +++ b/linux/gen-vz-template.sh @@ -46,12 +46,11 @@ if [ ! -x $dir/sbin/init ]; then debootstrap --variant=minbase $rel $dir $mirror fi -# chroot $dir # sad smo tu instalirali iproute itd unutar childa - -# apt-get install net-tools iproute - -# apt-get install quagga --no-install-recommends -rm -f $dir/etc/rc?.d/???cron # povlaci cron koji ne trebamo +for p in iproute net-tools iputils-ping mtr-tiny quagga; do + test -f $dir/var/lib/dpkg/info/$p.list || chroot $dir apt-get install $p --no-install-recommends +done + +rm -f $dir/etc/rc?.d/???cron # quagga povlaci cron koji ne trebamo # da ne trosi disk rm -rf $dir/usr/share/locale $dir/usr/share/doc -- 2.39.5