From df90c626e055f63a7ef38f679b009e402566c47f Mon Sep 17 00:00:00 2001 From: Tristan Corrick Date: Mon, 31 Dec 2018 20:34:36 +1300 Subject: 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 Reviewed-on: https://review.coreboot.org/c/30547 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/chromeos/crosfirmware.sh | 3 +++ 1 file changed, 3 insertions(+) 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 "$*" -- cgit v1.2.3