]> git.ipfire.org Git - thirdparty/systemd.git/commit - units/systemd-boot-system-token.service
stub: handle random seed like sd-boot does
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 18 Nov 2022 01:49:16 +0000 (02:49 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 22 Nov 2022 23:56:45 +0000 (00:56 +0100)
commit0a1d8ac77a21ae0741bdf4af08f3a71354805ff1
tree618f16fec40f4b56ae2550b930d5f3935495c9dd
parent0c14c45e5c00bbaed81566ace8f0d0c70cfe6392
stub: handle random seed like sd-boot does

sd-stub has an opportunity to handle the seed the same way sd-boot does,
which would have benefits for UKIs when sd-boot is not in use. This
commit wires that up.

It refactors the XBOOTLDR partition discovery to also find the ESP
partition, so that it access the random seed there.
TODO
src/boot/bootctl.c
src/boot/efi/boot.c
src/boot/efi/meson.build
src/boot/efi/part-discovery.c [moved from src/boot/efi/xbootldr.c with 94% similarity]
src/boot/efi/part-discovery.h [new file with mode: 0644]
src/boot/efi/stub.c
src/boot/efi/xbootldr.h [deleted file]
src/fundamental/efivars-fundamental.h
units/systemd-boot-system-token.service