|
|
|
@ -14,14 +14,10 @@ is_mpath() {
@@ -14,14 +14,10 @@ is_mpath() {
|
|
|
|
|
return 1 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# If we're in hostonly mode, do mpath if we appear to be using it for / |
|
|
|
|
if [[ $1 = -h ]]; then |
|
|
|
|
rootdev=$(find_root_block_device) |
|
|
|
|
if [[ $rootdev ]]; then |
|
|
|
|
check_block_and_slaves is_mpath "$rootdev" && exit 0 |
|
|
|
|
fi |
|
|
|
|
exit 1 |
|
|
|
|
# Do mpath if we appear to be using it for / |
|
|
|
|
rootdev=$(find_root_block_device) |
|
|
|
|
if [[ $rootdev ]]; then |
|
|
|
|
check_block_and_slaves is_mpath "$rootdev" && exit 0 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# the user installed it, they get it... |
|
|
|
|
exit 0 |
|
|
|
|
exit 1 |
|
|
|
|