]> git.entuzijast.net Git - imunes.git/commitdiff
apt-get install unutar chroota radi sasvim normalno, d'oh; dodao provjeru jesu li...
authorJosip Rodin <joy@debian.(none)>
Mon, 5 Oct 2009 12:55:39 +0000 (14:55 +0200)
committerJosip Rodin <joy@debian.(none)>
Mon, 5 Oct 2009 12:55:39 +0000 (14:55 +0200)
linux/gen-vz-template.sh

index d065dacfaa7f6224135ccf8da7f4fe3a82cc0141..3d2fe03430d1198070e5bc9d30281c6a9140d07a 100755 (executable)
@@ -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