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

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