]> piware.de Git - bin.git/blobdiff - update-chroots
postinst-setup: updates
[bin.git] / update-chroots
index c126d1ddd3b837931fae6d7aa7c9dd2cea9fd51d..223f62468e55af07c2dab4e16396a4cec830b4c0 100755 (executable)
@@ -1,3 +1,12 @@
 #!/bin/sh
+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/quantal.tar.gz
+$E pbuilder clean