From: Harald Seiler Date: Sun, 6 Sep 2020 19:43:57 +0000 (+0200) Subject: units: order systemd-random-seed.service before first-boot-complete.target X-Git-Tag: v247-rc1~44^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3af54f9bbe9b7971ec196a85351535d20b51b766;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/systemd-random-seed.service.in b/units/systemd-random-seed.service.in index f97f99a966a..aa4b3e7357c 100644 --- a/units/systemd-random-seed.service.in +++ b/units/systemd-random-seed.service.in @@ -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]