2016-02-15 15:16:25 +00:00
|
|
|
From: Fabian Vogt <fvogt@suse.com>
|
|
|
|
Subject: Fix warning about multipath if not needed
|
|
|
|
|
|
|
|
Although no device uses multipath, the module checks
|
|
|
|
for presence of the multipath binary first, printing a
|
|
|
|
warning if not present. This patch fixes the wrong ordering.
|
|
|
|
|
|
|
|
---
|
|
|
|
modules.d/90multipath/module-setup.sh | 5 +++--
|
|
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
Index: dracut-044/modules.d/90multipath/module-setup.sh
|
|
|
|
===================================================================
|
2016-06-07 13:51:45 +00:00
|
|
|
--- dracut-044.orig/modules.d/90multipath/module-setup.sh 2016-04-19 13:58:59.445320244 +0200
|
|
|
|
+++ dracut-044/modules.d/90multipath/module-setup.sh 2016-04-19 13:59:41.467698870 +0200
|
|
|
|
@@ -3,8 +3,6 @@
|
2016-02-15 15:16:25 +00:00
|
|
|
# called by dracut
|
|
|
|
check() {
|
|
|
|
local _rootdev
|
|
|
|
- # if there's no multipath binary, no go.
|
|
|
|
- require_binaries multipath || return 1
|
|
|
|
|
2016-06-07 13:51:45 +00:00
|
|
|
is_mpath() {
|
|
|
|
local _dev=$1
|
|
|
|
@@ -17,6 +15,9 @@ check() {
|
2016-02-15 15:16:25 +00:00
|
|
|
for_each_host_dev_and_slaves is_mpath || return 255
|
|
|
|
}
|
|
|
|
|
|
|
|
+ # if there's no multipath binary, no go.
|
|
|
|
+ require_binaries multipath || return 1
|
|
|
|
+
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|