]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
init/meson: Use libdir instead of hardcoded /lib path
authorMorten Linderud <morten@linderud.pw>
Sun, 13 Mar 2022 11:36:50 +0000 (12:36 +0100)
committerMorten Linderud <morten@linderud.pw>
Sun, 13 Mar 2022 11:36:50 +0000 (12:36 +0100)
Hardcoding `/lib` makes meson create a directory which would conflict on
distros with usrmerge as `/lib` is a symlink. We define `libdir` in the
top-level so we should be using that instead.

Signed-off-by: Morten Linderud <morten@linderud.pw>
config/init/meson.build

index 5061973cd3d4ec231b110ff1e2b63c8180364146..38b6a923cbe8a51723b7556f4d4f2e6c853fdf61 100644 (file)
@@ -12,7 +12,7 @@ if init_script == 'systemd'
             '@OUTPUT@',
         ],
         install: true,
-        install_dir: '/lib/systemd/system')
+        install_dir: join_paths(libdir, 'systemd/system'))
 
 elif init_script == 'upstart'
         install_data('upstart/lxcfs.conf', install_dir: join_paths(sysconfdir, 'init'))