]> piware.de Git - bin.git/blobdiff - update-chroots
postinst-setup: bump postgresql version
[bin.git] / update-chroots
index d006845abb17ce93fc4b106cd75512798801585f..791cb7b673b9c5f0d17ab6a31faa906987145aa7 100755 (executable)
@@ -2,6 +2,12 @@
 for f in /home/dchroot/*/etc/resolv.conf; do
     cp /etc/resolv.conf $f;
 done
+if type eatmydata >/dev/null 2>/dev/null; then
+    E=eatmydata
+fi
 dchroot -a -- 'apt-get update'
-dchroot -a -- 'apt-get -u -y dist-upgrade'
+$E dchroot -a -- 'apt-get -u -y dist-upgrade'
 dchroot -a -- 'apt-get clean'
+$E pbuilder --update --basetgz /home/martin-scratch/images/maverick.tar.gz
+$E pbuilder --update --basetgz /home/martin-scratch/images/karmic.tar.gz
+$E pbuilder clean