When suffixing image_version (mkosi.version) do not use an underscore
since that breaks systemd-machined/machinectl because undescore are
invalid in machine names.
This is related to commit
7eb4ea8
Closes: #2367
output = namespace.image_id or namespace.image or "image"
if namespace.image_version:
- output += f"_{namespace.image_version}"
+ output += f"-{namespace.image_version}"
return output
with chdir(d):
_, [config] = parse_config()
- assert config.output == "output_1.2.3"
+ assert config.output == "output-1.2.3"
def test_deterministic() -> None: