images/control: Clarify error messages

Changes the error message for trying to run a non-existent architecture
to mention that it's specifically the architecture that's missing and
not the specific image (which is checked at the very start of the file).

The error message for a non-existent image is clarified a bit too, to
make it more clear what's wrong in the manifest, instead of how the
runner is detecting that.
This commit is contained in:
Taavi Väänänen 2023-07-06 13:38:51 +03:00 committed by Drew DeVault
parent 979c15eaa3
commit 04544535b7
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ shift 2
if [ ! -d $self/$base ]
then
printf "Not a directory '%s'\n" "$base" >&2
printf "Image '%s' does not exist\n" "$base" >&2
exit 1
fi
@ -135,7 +135,7 @@ cmd_boot() {
fi
if [ ! -e "$self/$base/$arch/root.img.qcow2" ]
then
printf "Unknown base image '%s'\n" "$base" >&2
printf "Image '%s' is not available for arch '%s'\n" "$base" "$arch" >&2
exit 1
fi