]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/multipath-tools/patches/0016-RHBZ-554561-fix-init-error-msg.patch
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / multipath-tools / patches / 0016-RHBZ-554561-fix-init-error-msg.patch
1 ---
2 multipathd/multipathd.init.redhat | 8 +++++---
3 1 file changed, 5 insertions(+), 3 deletions(-)
4
5 Index: multipath-tools/multipathd/multipathd.init.redhat
6 ===================================================================
7 --- multipath-tools.orig/multipathd/multipathd.init.redhat
8 +++ multipath-tools/multipathd/multipathd.init.redhat
9 @@ -75,9 +75,11 @@ start() {
10
11 stop() {
12 root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
13 - dm_num=`dmsetup info -c --noheadings -o minor $root_dev`
14 - root_dm_device="dm-$dm_num"
15 - [ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
16 + dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
17 + if [ $? -eq 0 ]; then
18 + root_dm_device="dm-$dm_num"
19 + [ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
20 + fi
21
22 echo -n $"Stopping $prog daemon: "
23 killproc $DAEMON