summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/schroot-create.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index d44cedc3..6fff0c49 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -93,8 +93,12 @@ sudo tee /etc/schroot/chroot.d/jenkins-"$TARGET" <<-__END__
union-type=aufs
__END__
+cd /tmp
+
schroot -c "source:jenkins-$TARGET" -u root -- apt-get update
if [ -n "$1" ]
then
schroot -c "source:jenkins-$TARGET" -u root -- apt-get install -y --no-install-recommends "$@"
fi
+
+cd $CURDIR