summaryrefslogtreecommitdiff
path: root/util/chromeos/crosfirmware.sh
diff options
context:
space:
mode:
authorTristan Corrick <tristan@corrick.kiwi>2018-12-31 20:34:36 +1300
committerPatrick Georgi <pgeorgi@google.com>2019-01-03 16:52:36 +0000
commitdf90c626e055f63a7ef38f679b009e402566c47f (patch)
treeabaf75b07e6c31c21fc0694fff80d7dee303b461 /util/chromeos/crosfirmware.sh
parent1ccf83c971c1992730b00ab86af87a2a0bbcc17c (diff)
downloadcoreboot-df90c626e055f63a7ef38f679b009e402566c47f.tar.xz
util/chromeos/crosfirmware.sh: Add /sbin to PATH
On some systems, such as Debian 9.6, `parted` and `debugfs` are located in /sbin. Adding /sbin to PATH means that this script can work when run as a regular user. Change-Id: I151dba467e2b196f13093334273dae8a05865491 Signed-off-by: Tristan Corrick <tristan@corrick.kiwi> Reviewed-on: https://review.coreboot.org/c/30547 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/chromeos/crosfirmware.sh')
-rwxr-xr-xutil/chromeos/crosfirmware.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh
index ba0c2590d2..aaf30acee1 100755
--- a/util/chromeos/crosfirmware.sh
+++ b/util/chromeos/crosfirmware.sh
@@ -19,6 +19,9 @@
#DEBUG=1
+# On some systems, `parted` and `debugfs` are located in /sbin.
+export PATH="$PATH:/sbin"
+
debug()
{
test "$DEBUG" == "1" && echo "$*"