From d1c2ca4e71d3a72867dc1ac3bba579beead624a5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 27 Apr 2014 20:52:00 +0200 Subject: schroot either needs to be executed in an directory which exists in the schroot too, or --directory be used... --- bin/schroot-create.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/schroot-create.sh') 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 -- cgit v1.2.3-54-g00ecf