Tristan Corrick has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/30550
Change subject: util/chromeos/crosfirmware.sh: Print more messages ......................................................................
util/chromeos/crosfirmware.sh: Print more messages
The existing code has several messages that are only printed when the DEBUG variable is set. These messages are not verbose, and are quite useful to see how the script is progressing. So, print them unconditionally.
Change-Id: I8f78e4563f0b4a42f831194a6e526284c2fbcd92 Signed-off-by: Tristan Corrick tristan@corrick.kiwi --- M util/chromeos/crosfirmware.sh 1 file changed, 6 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/30550/1
diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh index 567d58e..7198c8e 100755 --- a/util/chromeos/crosfirmware.sh +++ b/util/chromeos/crosfirmware.sh @@ -14,15 +14,8 @@ # GNU General Public License for more details. #
-#DEBUG=1 - export PATH="$PATH:/sbin"
-debug() -{ - test "$DEBUG" == "1" && echo "$*" -} - exit_if_uninstalled() { local cmd_name="$1" local deb_pkg_name="$2" @@ -50,7 +43,7 @@ _conf=$1 _url=https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf
- debug "Downloading recovery image inventory..." + echo "Downloading recovery image inventory..."
curl -s "$_url" > $_conf } @@ -60,9 +53,9 @@ _url=$1 _file=$2
- debug "Downloading recovery image" + echo "Downloading recovery image" curl "$_url" > "$_file.zip" - debug "Decompressing recovery image" + echo "Decompressing recovery image" unzip -q "$_file.zip" rm "$_file.zip" } @@ -74,7 +67,7 @@ ROOTFS=$3 _bs=1024
- debug "Extracting ROOT-A partition" + echo "Extracting ROOT-A partition" ROOTP=$( printf "unit\nB\nprint\nquit\n" | \ parted $FILE 2>/dev/null | grep $NAME )
@@ -90,7 +83,7 @@ ROOTFS=$1 SHELLBALL=$2
- debug "Extracting chromeos-firmwareupdate" + echo "Extracting chromeos-firmwareupdate" printf "cd /usr/sbin\ndump chromeos-firmwareupdate $SHELLBALL\nquit" | \ debugfs $ROOTFS > /dev/null 2>&1 } @@ -100,7 +93,7 @@ _shellball=$1 _unpacked=$( mktemp -d )
- debug "Extracting coreboot image" + echo "Extracting coreboot image" sh $_shellball --sb_extract $_unpacked > /dev/null
_version=$( cat $_unpacked/VERSION | grep BIOS\ version: | \