mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user