From f935c1f1060d97bb8a7e2263c9471568bfaf6194 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 30 Nov 2012 19:00:58 +0100 Subject: add deb-src urls to sources.list and don't umount stuff we haven't mounted --- bin/chroot_tester.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/chroot_tester.sh b/bin/chroot_tester.sh index cd367ec5..01e10a2b 100755 --- a/bin/chroot_tester.sh +++ b/bin/chroot_tester.sh @@ -46,9 +46,9 @@ cleanup_all() { exit 1 fi sudo umount -l $CHROOT_TARGET/proc || true - sudo umount -l $CHROOT_TARGET/run/lock || true - sudo umount -l $CHROOT_TARGET/run/shm || true - sudo umount -l $CHROOT_TARGET/run || true + #sudo umount -l $CHROOT_TARGET/run/lock || true + #sudo umount -l $CHROOT_TARGET/run/shm || true + #sudo umount -l $CHROOT_TARGET/run || true sudo rm -rf --one-file-system $CHROOT_TARGET } @@ -65,6 +65,7 @@ mount /proc -t proc /proc echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d chmod +x /usr/sbin/policy-rc.d echo 'Acquire::http::Proxy "http://localhost:3128";' > /etc/apt/apt.conf.d/80proxy +echo "deb-src $MIRROR $1 main contrib non-free" >> /etc/apt/sources.list apt-get update EOF } @@ -98,7 +99,7 @@ EOF bootstrap() { echo "Bootstraping $1 into $CHROOT_TARGET now." sudo debootstrap $1 $CHROOT_TARGET $MIRROR - prepare_bootstrap + prepare_bootstrap $1 execute_ctmpfile } -- cgit v1.2.3-70-g09d2