If we don't have any kernel command line arguments, don't pass
--cmdline to ukify.
Turns out systemd-stub will hang on boot when .cmdline contains only
a null terminator so with this change we avoid that from happening.
cmd: list[PathString] = [
python_binary(context.config, binary=ukify),
ukify,
- "--cmdline", f"@{context.workspace / 'cmdline'}",
+ *(["--cmdline", f"@{context.workspace / 'cmdline'}"] if cmdline else []),
"--os-release", f"@{context.root / 'usr/lib/os-release'}",
"--stub", stub,
"--output", output,