]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: rename/rework systemd-boot-system-token.service → systemd-boot-random-seed...
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Dec 2022 16:16:47 +0000 (17:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Jan 2023 14:18:10 +0000 (15:18 +0100)
commit921fc451cb7ce29467c5d87346db2b8bb72fdf18
treea5b95a20968323a302482187f834814511ee34a7
parent5019b0cb15d788e5e1f3c15eb7cdca6ee18a847c
units: rename/rework systemd-boot-system-token.service → systemd-boot-random-seed.service

This renames systemd-boot-system-token.service to
systemd-boot-random-seed.service and conditions it less strictly.

Previously, the job of the service was to write a "system token" EFI
variable if it was missing. It called "bootctl --graceful random-seed"
for that. With this change we condition it more liberally: instead of
calling it only when the "system token" EFI variable isn't set, we call
it whenever a boot loader interface compatible boot loader is used. This
means, previously it was invoked on the first boot only: now it is
invoked at every boot.

This doesn#t change the command that is invoked. That's because
previously already the "bootctl --graceful random-seed" did two things:
set the system token if not set yet *and* refresh the random seed in the
ESP. Previousy we put the focus on the former, now we shift the focus to
the latter.

With this simple change we can replace the logic
f913c784ad4c93894fd6cb2590738113dff5a694 added, but from a service that
can run much later and doesn't keep the ESP pinned.
man/bootctl.xml
man/rules/meson.build
man/systemd-boot-random-seed.service.xml [new file with mode: 0644]
man/systemd-boot-system-token.service.xml [deleted file]
man/systemd-boot.xml
man/systemd-random-seed.service.xml
units/meson.build
units/systemd-boot-random-seed.service
units/systemd-boot-update.service
units/systemd-random-seed.service.in