From 9dc90d36f8f2e2029adbfece0831c1a840e899ca Mon Sep 17 00:00:00 2001 From: Gaurav Shah Date: Fri, 13 May 2011 12:49:18 -0700 Subject: [PATCH] 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 Tested-by: Gaurav Shah --- scripts/image_signing/sign_official_build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh index 7c0018c75c..8c4961a1bb 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;