]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: install the secrets unit only for systemd
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 3 May 2026 07:56:02 +0000 (09:56 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 4 May 2026 15:47:23 +0000 (17:47 +0200)
Install the secrets unit only when the init script is systemd.

Fixes: 2db552dc6ac17596720071fa91181055db7b82ee
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/remote/meson.build

index dfd61df62fbf6d1a87fc7777bccf3fda4421429f..25995fdbc2b63a3d064941dacb2de8e7ea7803e9 100644 (file)
@@ -345,7 +345,7 @@ endif
 
 # The monolithic libvirt daemon only attempts to load the
 # secrets encryption credentials if the secret driver is enabled
-if conf.has('WITH_SECRETS')
+if conf.has('WITH_SECRETS') and init_script == 'systemd'
   secret_dropin_conf = configuration_data({
     'localstatedir': localstatedir,
   })