summaryrefslogtreecommitdiffstats
path: root/bin/schroot-create.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-08 13:02:30 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-08 13:02:30 +0200
commitf889dff6feaba11c5dfb0a3749908853139f81f8 (patch)
tree577cf5f2eb6f94c9012aeccfbacf4181c4efddba /bin/schroot-create.sh
parent98729738b0606aecf210daeb4e288669fe482ce5 (diff)
downloadjenkins.debian.net-f889dff6feaba11c5dfb0a3749908853139f81f8.tar.xz
use sudo for better results
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-xbin/schroot-create.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 1b23f7df..4af2736a 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -108,7 +108,7 @@ bootstrap() {
set -e
if [ -z "$RESULT" ] ; then
echo "$(date -u) - initial debootstrap failed, sleeping 5min before retrying..."
- rm $CHROOT_TARGET -rf
+ sudo rm -rf --one-file-system $CHROOT_TARGET
sleep 5m
sudo debootstrap $SUITE $CHROOT_TARGET $MIRROR
fi