Signed-off-by: Roman Bogorodskiy <[email protected]>
---
 src/secret/meson.build | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/secret/meson.build b/src/secret/meson.build
index cfcc861f4f..32105dad9f 100644
--- a/src/secret/meson.build
+++ b/src/secret/meson.build
@@ -54,13 +54,15 @@ if conf.has('WITH_SECRETS')
 
   virt_secret_init_encryption_conf.set('localstatedir', localstatedir)
 
-  configure_file(
-    input: 'virt-secret-init-encryption.service.in',
-    output: '@[email protected]'.format('virt-secret-init-encryption'),
-    configuration: virt_secret_init_encryption_conf,
-    install: true,
-    install_dir: unitdir,
-  )
+  if init_script == 'systemd'
+    configure_file(
+      input: 'virt-secret-init-encryption.service.in',
+      output: '@[email protected]'.format('virt-secret-init-encryption'),
+      configuration: virt_secret_init_encryption_conf,
+      install: true,
+      install_dir: unitdir,
+    )
+  endif
 
   virt_daemon_units += {
     'service': 'virtsecretd',
-- 
2.52.0

Reply via email to