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

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