summaryrefslogtreecommitdiffstats
path: root/0016-RHBZ-554561-fix-init-error-msg.patch
diff options
context:
space:
mode:
Diffstat (limited to '0016-RHBZ-554561-fix-init-error-msg.patch')
-rw-r--r--0016-RHBZ-554561-fix-init-error-msg.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/0016-RHBZ-554561-fix-init-error-msg.patch b/0016-RHBZ-554561-fix-init-error-msg.patch
new file mode 100644
index 0000000..ae0ae70
--- /dev/null
+++ b/0016-RHBZ-554561-fix-init-error-msg.patch
@@ -0,0 +1,23 @@
+---
+ multipathd/multipathd.init.redhat | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+Index: multipath-tools/multipathd/multipathd.init.redhat
+===================================================================
+--- multipath-tools.orig/multipathd/multipathd.init.redhat
++++ multipath-tools/multipathd/multipathd.init.redhat
+@@ -75,9 +75,11 @@ start() {
+
+ stop() {
+ root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
+- dm_num=`dmsetup info -c --noheadings -o minor $root_dev`
+- root_dm_device="dm-$dm_num"
+- [ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
++ dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
++ if [ $? -eq 0 ]; then
++ root_dm_device="dm-$dm_num"
++ [ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
++ fi
+
+ echo -n $"Stopping $prog daemon: "
+ killproc $DAEMON