aboutsummaryrefslogtreecommitdiff
path: root/image_chromeos.py
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@chromium.org>2015-06-23 15:41:13 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-24 01:46:52 +0000
commite30d342f44700a2052601e87b3c4aafaef0b7be7 (patch)
tree31ff811186148e750b07ff84f6dbe75c4aec5aa1 /image_chromeos.py
parent9db7ae58ddb0c2d5650c9464427c40a3070ec03a (diff)
downloadtoolchain-utils-e30d342f44700a2052601e87b3c4aafaef0b7be7.tar.gz
toolchain-utils: specify full path in script to be run in chroot.
Remove the assumption that the current directory is ~/trunk/src/scripts/ when the chroot is entered with cros_sdk. BUG=chromium:429765 TEST=Ran image_chromeos.py with the changes. Change-Id: I4aa9f233da5b3eef727009d044acdd1a27ea4873 Reviewed-on: https://chrome-internal-review.googlesource.com/219940 Reviewed-by: Caroline Tice <cmtice@google.com> Commit-Queue: Rahul Chaudhry <rahulchaudhry@google.com> Tested-by: Rahul Chaudhry <rahulchaudhry@google.com>
Diffstat (limited to 'image_chromeos.py')
-rwxr-xr-ximage_chromeos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/image_chromeos.py b/image_chromeos.py
index e9c581c1..dd9a336f 100755
--- a/image_chromeos.py
+++ b/image_chromeos.py
@@ -193,7 +193,7 @@ def DoImage(argv):
chroot_image = located_image[len(real_chroot_dir):]
else:
chroot_image = os.path.join(
- "..",
+ "~/trunk/src",
located_image[len(real_src_dir):].lstrip("/"))
# Check to see if cros flash will work for the remote machine.