From 3af54f9bbe9b7971ec196a85351535d20b51b766 Mon Sep 17 00:00:00 2001 From: Harald Seiler Date: Sun, 6 Sep 2020 21:43:57 +0200 Subject: [PATCH] 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. --- units/systemd-random-seed.service.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/units/systemd-random-seed.service.in b/units/systemd-random-seed.service.in index f97f99a966..aa4b3e7357 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]