]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
init: respect --prefix when installing systemd unit files
authorTycho Andersen <tycho@tycho.pizza>
Mon, 12 Sep 2022 20:21:41 +0000 (14:21 -0600)
committerTycho Andersen <tycho@tycho.pizza>
Mon, 12 Sep 2022 20:22:33 +0000 (14:22 -0600)
Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
config/init/meson.build

index 5200570bee309ee0d1b6bf49a4372592e571baff..8445955cbd515c93c021897074d2070c61b20f3c 100644 (file)
@@ -2,7 +2,7 @@
 
 if 'systemd' in init_script
     systemd = dependency('systemd')
-    systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
+    systemd_system_unit_dir = get_option('prefix') + systemd.get_pkgconfig_variable('systemdsystemunitdir')
     systemd_service = custom_target(
         'lxcfs.service',
         input: 'systemd/lxcfs.service.in',