]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
use sudo for unmounting
authorHolger Levsen <holger@layer-acht.org>
Thu, 25 Oct 2012 15:30:47 +0000 (17:30 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 25 Oct 2012 15:30:47 +0000 (17:30 +0200)
liveboot_build.sh

index 767f16ca8d2b705b87db3960b833a09080f36f23..b9a9162e8104b73293060e18bf816b8b21aa4ef2 100755 (executable)
@@ -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
 }