~comcloudway/builds.sr.ht

04544535b7458c5d361e518dd943ed1cede2a2c8 — Taavi Väänänen 1 year, 3 months ago 979c15e
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.
1 files changed, 2 insertions(+), 2 deletions(-)

M images/control
M images/control => images/control +2 -2
@@ 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