]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi,nbd: do not fail in hostonly mode
authorHarald Hoyer <harald@redhat.com>
Mon, 11 Nov 2013 15:57:09 +0000 (16:57 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 11 Nov 2013 15:57:09 +0000 (16:57 +0100)
modules.d/95iscsi/module-setup.sh
modules.d/95nbd/module-setup.sh

index c8051bd56b796314503f29131c8ed57e7b1368ba..8379f4b32bf7d5820c7ee0f576a108745b636ddd 100755 (executable)
@@ -24,7 +24,7 @@ check() {
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         pushd . >/dev/null
-        for_each_host_dev_and_slaves is_iscsi || return 1
+        for_each_host_dev_and_slaves is_iscsi || return 255
         popd >/dev/null
     }
     return 0
index ac308238a49df3a028366f68882cf4ba2e853e2d..37ace21fc2b8714687afdb84bd63a95bf71ec287 100755 (executable)
@@ -15,7 +15,7 @@ check() {
 
         _rootdev=$(find_root_block_device)
         [[ -b /dev/block/$_rootdev ]] || return 1
-        check_block_and_slaves is_nbd "$_rootdev" || return 1
+        check_block_and_slaves is_nbd "$_rootdev" || return 255
     }
 
     return 0