From 40bb07065df53de191f1351aaca475f059c700e6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 25 Oct 2012 17:30:47 +0200 Subject: [PATCH] use sudo for unmounting --- liveboot_build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } -- 2.39.5