]> git.ipfire.org Git - thirdparty/systemd.git/commit
measure: separate out PE section options in --help text 24620/head
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Sep 2022 16:30:03 +0000 (18:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Sep 2022 16:51:37 +0000 (18:51 +0200)
commit996dbf98e4663ab1151fc3b082c5f7f94ff8d9d1
tree1cee0683b011f68c3e0519392511990b77bfc4fb
parent5dcb9c3ccda27f1ab9cb9ee7be064100969ad302
measure: separate out PE section options in --help text

Let's separate the PE section options in the --help text to make clearer
that they are about PE sections, and thus make things less confusing
regarding the cryptic names. Specifically, there's now a separate
section in the --help text that looks like this:

<snip>
UKI PE Section Options:                                         UKI PE Section
     --linux=PATH        Path Linux kernel image                → .linux
     --osrel=PATH        Path to os-release file                → .osrel
     --cmdline=PATH      Path to file with kernel command line  → .cmdline
     --initrd=PATH       Path to initrd image                   → .initrd
     --splash=PATH       Path to splash bitmap                  → .splash
     --dtb=PATH          Path to Devicetree file                → .dtb
     --pcrpkey=PATH      Path to public key for PCR signatures  → .pcrpkey
</snipe>

(The section title is underlined, like we usually do it)

I think separating this out, and organizing the section name in tabular
form emphasizes nicely where this switches get their name from and what
they mean.

Hopefully addresses concerns from
https://github.com/systemd/systemd/pull/24458#discussion_r967052720 in a
diferent way.

(Also dropped a hint regarding DER format for public key. it's simply
wrong, we use PEM like everyone else on Linux. Outside of Java land DER
isn't popular, so we don't need to mention it here in the --help text,
man page should be enough.)
src/boot/measure.c