From d53574e568d70fc8c3d77cc711c306f91fd6abe8 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 13 Jun 2012 12:58:27 -0700 Subject: [PATCH] Mark zdev.conf as a config file Prevent 'rpm -Uvh *.rpm" from automatically replacing your vdev.conf file by flagging it as a non replacable config file. Signed-off-by: Brian Behlendorf Closes #486 --- zfs.spec.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zfs.spec.in b/zfs.spec.in index 4b5b3ea71c..07b16e8e74 100644 --- a/zfs.spec.in +++ b/zfs.spec.in @@ -74,17 +74,20 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) -%doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER -%doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE %{_sbindir}/* %{_bindir}/* %{_libdir}/* %{_mandir}/man5/* %{_mandir}/man8/* -%{_sysconfdir}/init.d/* -%{_sysconfdir}/zfs/* %{_udevdir}/* +%config %{_sysconfdir}/init.d/* +%config %{_sysconfdir}/zfs/* +%config(noreplace) %{_sysconfdir}/zfs/zdev.conf + +%doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER +%doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE + %files devel %defattr(-,root,root) %{_includedir}/*