util/chromeos/crosfirmware.sh: Exit if shellball extraction fails

Test if shellball extraction fails, and if it does, show the output of
the command and then exit, as nothing more can be done.

Change-Id: I0cd7416c988d11e019bfd0b4cd52af8811e6d1e2
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90787
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Matt DeVillier 2026-01-16 17:32:22 -06:00
commit 36f0b12570

View file

@ -103,7 +103,11 @@ extract_coreboot() {
echo "Extracting coreboot image"
if ! sh $_shellball --unpack $_unpacked >/dev/null 2>&1; then
sh $_shellball --sb_extract $_unpacked >/dev/null 2>&1
if ! sh $_shellball --sb_extract $_unpacked >$_unpacked/sb_extract.log 2>&1; then
echo "Failed to extract shellball image"
cat $_unpacked/sb_extract.log
exit 1
fi
fi
if [ -d $_unpacked/models/ ]; then