efi/libstub: Take command line overrides into account for loaded files
authorArd Biesheuvel <ardb@kernel.org>
Sun, 13 Oct 2024 11:10:38 +0000 (13:10 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 17 Nov 2024 07:54:01 +0000 (08:54 +0100)
commit851062278436c9a887749e7b73598a28dd902ac0
tree1d243b6c6fd149f51653ff4a733358e928d5eedf
parent80d01ce607cbffd8fa6ceb8a91ce07667bc51d5a
efi/libstub: Take command line overrides into account for loaded files

When CONFIG_CMDLINE_OVERRIDE or CONFIG_CMDLINE_FORCE are configured, the
command line provided by the boot stack should be ignored, and only the
built-in command line should be taken into account.

Add the required handling of this when dealing with initrd= or dtb=
command line options in the EFI stub.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/file.c