[lvm2] another attempt to fix tmpfiles lib dir

Alasdair Kergon agk at fedoraproject.org
Tue Aug 7 22:28:31 UTC 2012


commit c7e201db594964d205b4897cfa7e226821e9e588
Author: Alasdair G Kergon <agk at redhat.com>
Date:   Tue Aug 7 23:28:05 2012 +0100

    another attempt to fix tmpfiles lib dir

 lvm2.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
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


More information about the scm-commits mailing list