From: Holger Levsen Date: Thu, 25 Oct 2012 15:30:47 +0000 (+0200) Subject: use sudo for unmounting X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=40bb07065df53de191f1351aaca475f059c700e6;p=profitbricks%2Fjenkins-build-scripts.git use sudo for unmounting --- diff --git a/liveboot_build.sh b/liveboot_build.sh index 767f16c..b9a9162 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -9,10 +9,10 @@ set_failure() { # cleanup mount points cd /var/cache/pbuilder/build echo "My PID: $$" - umount -l $$/proc || true - umount -l $$/dev || true - umount -l $$/dev/pts || true - umount -l $$/srv/build || true + sudo umount -l $$/proc || true + sudo umount -l $$/dev || true + sudo umount -l $$/dev/pts || true + sudo umount -l $$/srv/build || true exit 1 }