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>
# 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,
})