Index: bin/cros_make_image_bootable |
diff --git a/bin/cros_make_image_bootable b/bin/cros_make_image_bootable |
index cc4c4695613ac8f659b21c6c01e15d8c9120557c..bcbef4cd7336c83df6da9fb8d87cb1cc4fc3f8c2 100755 |
--- a/bin/cros_make_image_bootable |
+++ b/bin/cros_make_image_bootable |
@@ -14,8 +14,12 @@ if [ ! -r "${COMMON_PATH}" ]; then |
echo "ERROR! Cannot find common.sh: ${COMMON_PATH}" 1>&2 |
exit 1 |
fi |
+ |
. "$(dirname "$0")/../common.sh" |
+# Script must be run inside the chroot. |
+assert_inside_chroot |
+ |
set -e |
. "$(dirname "$0")/../chromeos-common.sh" # for partoffset and partsize |
@@ -46,8 +50,6 @@ if [ ! -r "${IMAGE}" ]; then |
die "${IMAGE} cannot be read!" |
fi |
-# Script must be run inside the chroot. |
-restart_in_chroot_if_needed $* |
locate_gpt |
set +e |