Blame SOURCES/0056-iscsi-nbd-do-not-fail-in-hostonly-mode.patch

712866
From d014032c62b22ef88be6123532b8f4fc545580ff Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Mon, 11 Nov 2013 16:57:09 +0100
712866
Subject: [PATCH] iscsi,nbd: do not fail in hostonly mode
712866
712866
---
712866
 modules.d/95iscsi/module-setup.sh | 2 +-
712866
 modules.d/95nbd/module-setup.sh   | 2 +-
712866
 2 files changed, 2 insertions(+), 2 deletions(-)
712866
712866
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
5c6c2a
index 502e8345..c6901c08 100755
712866
--- a/modules.d/95iscsi/module-setup.sh
712866
+++ b/modules.d/95iscsi/module-setup.sh
712866
@@ -23,7 +23,7 @@ check() {
712866
 
712866
     [[ $hostonly ]] || [[ $mount_needs ]] && {
712866
         pushd . >/dev/null
712866
-        for_each_host_dev_and_slaves is_iscsi || return 1
712866
+        for_each_host_dev_and_slaves is_iscsi || return 255
712866
         popd >/dev/null
712866
     }
712866
     return 0
712866
diff --git a/modules.d/95nbd/module-setup.sh b/modules.d/95nbd/module-setup.sh
5c6c2a
index 7b781803..3ac00f60 100755
712866
--- a/modules.d/95nbd/module-setup.sh
712866
+++ b/modules.d/95nbd/module-setup.sh
712866
@@ -14,7 +14,7 @@ check() {
712866
 
712866
         _rootdev=$(find_root_block_device)
712866
         [[ -b /dev/block/$_rootdev ]] || return 1
712866
-        check_block_and_slaves is_nbd "$_rootdev" || return 1
712866
+        check_block_and_slaves is_nbd "$_rootdev" || return 255
712866
     }
712866
 
712866
     return 0