]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
Merge pull request #526 from brauner/2022-03-13.fixes
authorStéphane Graber <stgraber@ubuntu.com>
Sun, 13 Mar 2022 17:09:32 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Sun, 13 Mar 2022 17:09:32 +0000 (18:09 +0100)
sysfs_fuse: fixes

config/init/meson.build

index 5061973cd3d4ec231b110ff1e2b63c8180364146..e39c2abde0090b3e8ab71d09d52201f9001e43f1 100644 (file)
@@ -1,6 +1,8 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 if init_script == 'systemd'
+    systemd = dependency('systemd')
+    systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
     systemd_service = custom_target(
         'lxcfs.service',
         input: 'systemd/lxcfs.service.in',
@@ -12,7 +14,7 @@ if init_script == 'systemd'
             '@OUTPUT@',
         ],
         install: true,
-        install_dir: '/lib/systemd/system')
+        install_dir: systemd_system_unit_dir)
 
 elif init_script == 'upstart'
         install_data('upstart/lxcfs.conf', install_dir: join_paths(sysconfdir, 'init'))