mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 23:08:49 +02:00
xbmk: much more verbose error messages
use the new functionality in err(), whereby a given function name and arguments can be provided, for debugging purposes. something similar was already done in a few places, and replaced with this unified functionality. this patch will make xbmk much easier to debug, under fault conditions. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+3
-2
@@ -35,7 +35,7 @@ extract_mrc()
|
||||
x_ cd "$appdir"
|
||||
extract_partition "${MRC_url##*/}"
|
||||
extract_archive "$SHELLBALL" .
|
||||
) || err "mrc download/extract failure"
|
||||
) || err "mrc download/extract failure" "extract_mrc" "$@"
|
||||
|
||||
x_ "$cbfstool" "$appdir/"bios.bin extract -n mrc.bin \
|
||||
-f "${_pre_dest%/*}/mrc.bin" -r RO_SECTION
|
||||
@@ -54,5 +54,6 @@ extract_partition()
|
||||
count=$(( $SIZE / 1024 ))
|
||||
|
||||
printf "cd /usr/sbin\ndump chromeos-firmwareupdate %s\nquit" \
|
||||
"$SHELLBALL" | debugfs "root-a.ext2" || err "!extract shellball"
|
||||
"$SHELLBALL" | debugfs "root-a.ext2" || \
|
||||
err "!extract shellball" "extract_partition" "$@"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user