From fd6569a03cd9b595ff0ff6bc603180af41670bc5 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 31 Dec 2010 15:49:02 +0100 Subject: [PATCH] update-chroots: add pbuilders and eatmydata --- update-chroots | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/update-chroots b/update-chroots index d006845..b0c39c3 100755 --- a/update-chroots +++ b/update-chroots @@ -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/download/images/maverick.tar.gz +$E pbuilder --update --basetgz /home/martin/download/images/karmic.tar.gz +$E pbuilder clean -- 2.39.2