From e8b6315eee702c7dcd7c73d1b4a418122f965d67 Mon Sep 17 00:00:00 2001 From: Andrew de los Reyes Date: Tue, 16 Feb 2010 14:18:34 -0800 Subject: [PATCH] enter_chroot: allow depot_tools to fail to mount Review URL: http://codereview.chromium.org/601082 --- enter_chroot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/enter_chroot.sh b/enter_chroot.sh index d5a7ec2de7..00b9e64794 100755 --- a/enter_chroot.sh +++ b/enter_chroot.sh @@ -122,7 +122,10 @@ function setup_env { echo "Mounting depot_tools" DEPOT_TOOLS=$(dirname $(which gclient) ) mkdir -p "$MOUNTED_PATH" - sudo mount --bind "$DEPOT_TOOLS" "$MOUNTED_PATH" + if ! sudo mount --bind "$DEPOT_TOOLS" "$MOUNTED_PATH"; then + echo "depot_tools failed to mount; perhaps it's on NFS?" + echo "This may impact chromium build." + fi fi fi ) 200>>"$LOCKFILE"