summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--projectroot/usr/lib/systemd/system/haveged.service3
-rw-r--r--rules/haveged.make4
2 files changed, 4 insertions, 3 deletions
diff --git a/projectroot/usr/lib/systemd/system/haveged.service b/projectroot/usr/lib/systemd/system/haveged.service
index 81070ca8b..5fab8c665 100644
--- a/projectroot/usr/lib/systemd/system/haveged.service
+++ b/projectroot/usr/lib/systemd/system/haveged.service
@@ -1,6 +1,7 @@
[Unit]
Description=Entropy Daemon based on the HAVEGE algorithm
Documentation=man:haveged(8) http://www.issihosts.com/haveged/
+After=systemd-random-seed.service systemd-tmpfiles-setup-dev.service
[Service]
Type=simple
@@ -8,4 +9,4 @@ ExecStart=/usr/sbin/haveged -w 1024 -v 1 --Foreground
SuccessExitStatus=143
[Install]
-WantedBy=multi-user.target
+WantedBy=sysinit.target
diff --git a/rules/haveged.make b/rules/haveged.make
index 8f49ad49e..155c142d4 100644
--- a/rules/haveged.make
+++ b/rules/haveged.make
@@ -75,10 +75,10 @@ endif
endif
ifdef PTXCONF_HAVEGED_SYSTEMD_UNIT
- @$(call install_copy, haveged, 0, 0, 0644, -, \
+ @$(call install_alternative, haveged, 0, 0, 0644, \
/usr/lib/systemd/system/haveged.service)
@$(call install_link, haveged, ../haveged.service, \
- /usr/lib/systemd/system/multi-user.target.wants/haveged.service)
+ /usr/lib/systemd/system/sysinit.target.wants/haveged.service)
endif
@$(call install_finish, haveged)