X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=update-chroots;h=791cb7b673b9c5f0d17ab6a31faa906987145aa7;hp=c126d1ddd3b837931fae6d7aa7c9dd2cea9fd51d;hb=aa2ac45de12d32728735496784ebf7751bfbcf92;hpb=bd472bcf714b11da1190c356ded9d76c25023a7f diff --git a/update-chroots b/update-chroots index c126d1d..791cb7b 100755 --- a/update-chroots +++ b/update-chroots @@ -1,3 +1,13 @@ #!/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/maverick.tar.gz +$E pbuilder --update --basetgz /home/martin-scratch/images/karmic.tar.gz +$E pbuilder clean