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.
---
images/control | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/images/control b/images/control
index 4091ebd..b468e37 100755
--- a/images/control
+++ b/images/control
@@ -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
--
2.40.1