]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: make sure to include all haveged unit files
authorFranck Bui <fbui@suse.com>
Tue, 31 Aug 2021 13:49:43 +0000 (15:49 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 1 Sep 2021 19:40:55 +0000 (20:40 +0100)
Recent versions of haveged relies on haveged-switch-root.service too.

test/test-functions

index a2b92aeba8d46b38227c899cb7ee7a4314bdb3a2..5457f9e726297ba31f6bdb086804d8c8dede744c 100644 (file)
@@ -1431,12 +1431,14 @@ install_plymouth() {
 }
 
 install_haveged() {
-    # If haveged is installed and probably included in initrd, it needs to be
+    # If haveged is installed, it's probably included in initrd and needs to be
     # installed in the image too.
     if [ -x /usr/sbin/haveged ]; then
         dinfo "Install haveged files"
         inst /usr/sbin/haveged
-        inst /usr/lib/systemd/system/haveged.service
+        for u in /usr/lib/systemd/system/haveged*; do
+            inst $u
+        done
     fi
 }