]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/ukify/ukify.py
ukify: raise error if genkey is called with no output arguments 30343/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Dec 2023 10:41:56 +0000 (11:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Dec 2023 10:46:04 +0000 (11:46 +0100)
commitf3d50fb2c6890c0036614786fb97f46eb561432e
treeb5c468d26d8f0087873a5c8aec56f3caed5f19dc
parent7b0760ca9c4cec47827afc33e2deeef436d84e5b
ukify: raise error if genkey is called with no output arguments

The idea is that genkey is called with either
--secureboot-private-key= + --secureboot-certificate=, and then it
writes those, or with --pcr-private-key + optionally --pcr-public-key
and then it writes those, or both. But when called with no arguments
whatsover, it did nothing.

There is no implicit value for any of those parameters as input (unlike in
mkosi), so we also don't want to have implicit values when used as output.
But we shouldn't return success if no work was done, this is quite confusing.
src/ukify/ukify.py