Skip to content

Commit

Permalink
error, if system or uarch are missing (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
finkandreas authored Nov 7, 2024
1 parent a3483fe commit a4283c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cli/add_remove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ int image_add(const image_add_args& args, const global_settings& settings) {
args.uenv_description);
return 1;
}
// no automatic cluster/uarch detection yet, enforce them to be set
if (!(label->system && label->uarch)) {
spdlog::error("the label {} must provide the system and uarch as "
"name/version:tag@system%uarch",
args.uenv_description);
return 1;
}
spdlog::info("image_add: label {}", *label);

auto file = uenv::parse_path(args.squashfs);
Expand Down

0 comments on commit a4283c1

Please sign in to comment.