units: order systemd-random-seed.service before first-boot-complete.target

Ensure that systemd-random-seed.service has completed before marking
a first boot as completed to guarantee that a saved seed will only be
used after it has been initialized at least once.
This commit is contained in:
Harald Seiler 2020-09-06 21:43:57 +02:00
parent a1e3787148
commit 3af54f9bbe
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ DefaultDependencies=no
RequiresMountsFor=@RANDOM_SEED@
Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=shutdown.target
Before=first-boot-complete.target shutdown.target
Wants=first-boot-complete.target
ConditionVirtualization=!container
[Service]