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>
This commit is contained in:
Gaurav Shah
2011-05-13 12:49:18 -07:00
parent 7ecb39d419
commit 9dc90d36f8

View File

@@ -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;