From c7e201db594964d205b4897cfa7e226821e9e588 Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Tue, 7 Aug 2012 23:28:05 +0100 Subject: [PATCH] another attempt to fix tmpfiles lib dir --- lvm2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lvm2.spec b/lvm2.spec index 7021d51..7e17364 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -116,6 +116,10 @@ or more physical volumes and creating one or more logical volumes %define configure_udev --with-udevdir=%{_udevdir} --enable-udev_sync %endif +%if %{enable_systemd} +%define _tmpfilesdir %{_prefix}/lib/tmpfiles.d +%endif + %if %{enable_thin} %define configure_thin --with-thin=internal --with-thin-check=%{_sbindir}/thin_check %endif @@ -309,7 +313,7 @@ fi %dir %{_default_locking_dir} %dir %{_default_run_dir} %if %{enable_systemd} -%config(noreplace) %{_libdir}/tmpfiles.d/%{name}.conf +%config(noreplace) %{_tmpfilesdir}/%{name}.conf %{_unitdir}/lvm2-monitor.service %if %{enable_lvmetad} %{_unitdir}/lvm2-lvmetad.socket