diff options
author | Gaurav Shah <gauravsh@chromium.org> | 2011-05-13 12:49:18 -0700 |
---|---|---|
committer | Gaurav Shah <gauravsh@chromium.org> | 2011-05-13 16:47:04 -0700 |
commit | 9dc90d36f8f2e2029adbfece0831c1a840e899ca (patch) | |
tree | 7bf7a93af263e2d063c8e693ebfd3f77148f2ee2 | |
parent | 7ecb39d419706756a7a9054fa151345f04c3a0a2 (diff) | |
download | vboot-9dc90d36f8f2e2029adbfece0831c1a840e899ca.tar.gz |
Add /sbin and /usr/sbin to the search path
Some tools (such as dumpe2fs) may reside in paths that are not in the system
non-root path.
BUG=chromium-os:13564
TEST=Can now run sign_official_build without sudo.
Change-Id: I48737e7735551c9004a6fa19359da664ca67b423
Reviewed-on: http://gerrit.chromium.org/gerrit/867
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Gaurav Shah <gauravsh@chromium.org>
-rwxr-xr-x | scripts/image_signing/sign_official_build.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh index 7c0018c7..8c4961a1 100755 --- a/scripts/image_signing/sign_official_build.sh +++ b/scripts/image_signing/sign_official_build.sh @@ -48,6 +48,10 @@ fi # Abort on errors. set -e +# Add to the path since some tools reside here and may not be in the non-root +# system path. +PATH=$PATH:/usr/sbin:/sbin + # Make sure the tools we need are available. for prereqs in gbb_utility vbutil_kernel cgpt dump_kernel_config verity \ load_kernel_test dumpe2fs sha1sum e2fsck; |