Index: mount_gpt_image.sh |
diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh |
index 1534105182d4455592504814e19bfb9f02685991..d6f2c64e26ce3667bcb9392821cd0ec1d941c48a 100755 |
--- a/mount_gpt_image.sh |
+++ b/mount_gpt_image.sh |
@@ -28,12 +28,14 @@ find_common_sh |
. "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1) |
# --- END COMMON.SH BOILERPLATE --- |
-# Need to be inside the chroot to load chromeos-common.sh |
-assert_inside_chroot |
- |
+if [ $INSIDE_CHROOT -ne 1 ]; then |
+ INSTALL_ROOT="$GCLIENT_ROOT/src/platform/installer/" |
Greg Spencer (Chromium)
2011/02/03 04:19:56
This should probably be $SRC_ROOT instead of $GCLI
DaleCurtis
2011/02/03 04:29:45
Done.
|
+else |
+ INSTALL_ROOT=/usr/lib/installer/ |
+fi |
# Load functions and constants for chromeos-install |
-. "/usr/lib/installer/chromeos-common.sh" || \ |
- die "Unable to load /usr/lib/installer/chromeos-common.sh" |
+. "${INSTALL_ROOT}/chromeos-common.sh" || \ |
+ die "Unable to load ${INSTALL_ROOT}/chromeos-common.sh" |
locate_gpt |