remote: install the secrets unit only for systemd

Install the secrets unit only when the init script is systemd.

Fixes: 2db552dc6a
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Roman Bogorodskiy committed 2026-05-04 17:47:23 +02:00
1 parent deb4d83e7b
commit cd13c3ee24
1 file changed
+1 -1
+1 -1
View 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,
})