diff --git a/0085-RHBZ-1160478-mpathconf-template.patch b/0085-RHBZ-1160478-mpathconf-template.patch new file mode 100644 index 0000000..3c0e443 --- /dev/null +++ b/0085-RHBZ-1160478-mpathconf-template.patch @@ -0,0 +1,52 @@ +--- + multipath/mpathconf | 26 ++++++++++++++++++++------ + 1 file changed, 20 insertions(+), 6 deletions(-) + +Index: multipath-tools-130222/multipath/mpathconf +=================================================================== +--- multipath-tools-130222.orig/multipath/mpathconf ++++ multipath-tools-130222/multipath/mpathconf +@@ -19,10 +19,27 @@ + + unset ENABLE FIND FRIENDLY MODULE MULTIPATHD HAVE_DISABLE HAVE_FIND HAVE_BLACKLIST HAVE_DEFAULTS HAVE_FRIENDLY HAVE_MULTIPATHD HAVE_MODULE SHOW_STATUS CHANGED_CONFIG + +-DEFAULT_CONFIGFILE="/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf" ++DEFAULT_CONFIG="# device-mapper-multipath configuration file ++ ++# For a complete list of the default configuration values, run either: ++# # multipath -t ++# or ++# # multipathd show config ++ ++# For a list of configuration options with descriptions, see the ++# multipath.conf man page. ++ ++# For an example configuration file, see: ++# /user/share/doc/device-mapper-multipath/multipath.conf ++ ++defaults { ++ user_friendly_names yes ++ find_multipaths yes ++}" ++ + CONFIGFILE="/etc/multipath.conf" + MULTIPATHDIR="/etc/multipath" +-TMPFILE=/etc/multipath/.multipath.conf.tmp ++TMPFILE="/etc/multipath/.multipath.conf.tmp" + + function usage + { +@@ -134,12 +151,9 @@ if [ ! -d "$MULTIPATHDIR" ]; then + fi + + rm $TMPFILE 2> /dev/null ++echo "$DEFAULT_CONFIG" > $TMPFILE + if [ -f "$CONFIGFILE" ]; then + cp $CONFIGFILE $TMPFILE +-elif [ -f "$DEFAULT_CONFIGFILE" ]; then +- cp $DEFAULT_CONFIGFILE $TMPFILE +-else +- touch $TMPFILE + fi + + if grep -q "^blacklist[[:space:]]*{" $TMPFILE ; then diff --git a/device-mapper-multipath.spec b/device-mapper-multipath.spec index b63e72a..80435bb 100644 --- a/device-mapper-multipath.spec +++ b/device-mapper-multipath.spec @@ -1,7 +1,7 @@ Summary: Tools to manage multipath devices using device-mapper Name: device-mapper-multipath Version: 0.4.9 -Release: 68%{?dist}.1 +Release: 68%{?dist}.2 License: GPL+ Group: System Environment/Base URL: http://christophe.varoqui.free.fr/ @@ -92,6 +92,7 @@ Patch0081: 0081-RHBZ-1097694-orphan-paths-on-reload.patch Patch0082: 0082-UPBZ-1104605-reload-on-rename.patch Patch0083: 0083-UPBZ-1160429-user-friendly-name-remap.patch Patch0084: 0084-RHBZ-1160429-cleanup-remap.patch +Patch0085: 0085-RHBZ-1160478-mpathconf-template.patch # runtime Requires: %{name}-libs = %{version}-%{release} @@ -227,6 +228,7 @@ kpartx manages partition creation and removal for device-mapper devices. %patch0082 -p1 %patch0083 -p1 %patch0084 -p1 +%patch0085 -p1 cp %{SOURCE1} . %build @@ -325,6 +327,12 @@ bin/systemctl --no-reload enable multipathd.service >/dev/null 2>&1 ||: %{_mandir}/man8/kpartx.8.gz %changelog +* Tue Dec 9 2014 Benjamin Marzinski - 0.4.9-68.fc21.2 +- Add 0085-RHBZ-1160478-mpathconf-template.patch + * mpathconf no longer copies the default config template for the + docs directory. It simply writes the template itself. +- Resolves: bz# 1160478 + * Thu Nov 13 2014 Benjamin Marzinski - 0.4.9-68.fc21.1 - Add 0082-UPBZ-1104605-reload-on-rename.patch * Reload table on rename if necessary