]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: don't pass kernel cmdline option to UKIs which have the very same line built-in
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Aug 2023 16:18:41 +0000 (18:18 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 28 Aug 2023 10:24:53 +0000 (11:24 +0100)
commit73f0eedf9bb6dd5d96985a2a47fc074c7367f656
treef328e9bcef200b76cd16d0cef0b6ac69674fa3f8
parent23cbe90d7db6b569ae2fc18ad88f99f8ef505593
boot: don't pass kernel cmdline option to UKIs which have the very same line built-in

There's really no point in first extracting a command line from an UKI
to just pass it unmodified to the UKI. In particular as this is
systematically ignored in SecureBoot is enabled.

Let's drop this, so that unless the user actually edits the cmdline we
pass nothing to the invoked kernel.

Note that this low-key is a compat break, since the passed cmdline gets
measured. However, in the interest of minimized the difference between
systems with and without sd-boot to behave the same i think we should
suppress the command line anyway.
src/boot/efi/boot.c