mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: board_status: Abort early if the coreboot image doesn't exist
Change-Id: I274c990e69634ebcb9dd77470cbf1515281de312
Original-Signed-off-by: Jonathan Neuschfer <j.neuschaefer@gmx.net>
Original-Reviewed-on: https://review.coreboot.org/14683
Original-Reviewed-by: Martin Roth <martinroth@google.com>
(cherry-picked from commit 0e962eeb93
)
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/346614
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
fe9b542b1f
commit
48a3d6dc18
1 changed files with 6 additions and 0 deletions
|
@ -266,6 +266,12 @@ if [ $? -ne 0 ]; then
|
|||
exit $EXIT_FAILURE
|
||||
fi
|
||||
|
||||
if [ ! -e "$COREBOOT_IMAGE" ]; then
|
||||
echo "board_status needs $COREBOOT_IMAGE, but it does not exist."
|
||||
echo "Use \"-i IMAGE_FILE\" to select a different image, or \"--help\" for more options."
|
||||
exit $EXIT_FAILURE
|
||||
fi
|
||||
|
||||
# Results will be placed in a temporary location until we're ready to upload.
|
||||
# If the user does not wish to upload, results will remain in /tmp.
|
||||
tmpdir=$(mktemp -d --tmpdir coreboot_board_status.XXXXXXXX)
|
||||
|
|
Loading…
Add table
Reference in a new issue