From c5e880f7dbf302a0adb88cc016f9b6c19f8b2327 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Thu, 29 Apr 2010 16:19:05 -0700 Subject: [PATCH] Force mod_image_for_test to run inside chroot if outside Review URL: http://codereview.chromium.org/1818001 --- mod_image_for_test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh index 5bc1b2fbb0..69f68e2c84 100755 --- a/mod_image_for_test.sh +++ b/mod_image_for_test.sh @@ -13,6 +13,11 @@ # Load functions and constants for chromeos-install . "$(dirname "$0")/chromeos-common.sh" +if [ ${INSIDE_CHROOT} -eq 0 ] ; then + "$(dirname "$0")/enter_chroot.sh" ./mod_image_for_test.sh "$@" + exit 0 +fi + get_default_board DEFINE_string board "$DEFAULT_BOARD" "Board for which the image was built"