Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: src/scripts/enter_chroot.sh

Issue 1593021: Add a safe_unmount function and use it in enter_chroot. (Closed)
Patch Set: Don't rely on $? Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/common.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/enter_chroot.sh
diff --git a/src/scripts/enter_chroot.sh b/src/scripts/enter_chroot.sh
index f99c8597375884f5dc8a4b97798d1ff25be6bc22..804d8ce64e16c4da7c15f4f710f8e2c294591ddb 100755
--- a/src/scripts/enter_chroot.sh
+++ b/src/scripts/enter_chroot.sh
@@ -189,7 +189,7 @@ function teardown_env {
MOUNTED_PATH=$(readlink -f "$FLAGS_chroot")
echo "Unmounting chroot environment."
for i in $(mount | grep -F "on $MOUNTED_PATH/" | awk '{print $3}'); do
- sudo umount "$i" || die "Failed to umount $i"
+ safe_umount "$i"
done
fi
) 200>>"$LOCKFILE" || die "teardown_env failed"
« no previous file with comments | « src/scripts/common.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698