File multipath-tools-dont-remove-partition-mappings-on-stop of Package multipath-tools
From 90da404890853596d677109f0fe4f56a46e9ba74 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Thu, 12 Mar 2009 14:47:29 +0100
Subject: [PATCH] Do not try to remove partition mappings by hand
boot.multipath should not try to remove partition mappings by
hand, multipath will take care of it.
References: bnc#468826
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
multipath/multipath.init.suse | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/multipath/multipath.init.suse b/multipath/multipath.init.suse
index 1711241..a211252 100755
--- a/multipath/multipath.init.suse
+++ b/multipath/multipath.init.suse
@@ -104,11 +104,6 @@ case "$1" in
stop)
echo -n "Removing multipath targets:"
- # Remove all partition mappings
- if /sbin/dmsetup ls | sed '/No devices/d' | grep -q -- -part; then
- /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -d -p _part" 2> /dev/null
- fi
-
# Flush all existing maps
$PROGRAM -F
--
1.6.0.2