iscsi,nbd: do not fail in hostonly mode

Harald Hoyer 2013-11-11 16:57:09 +01:00
parent 90441c4476
commit d014032c62
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,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

View File

@ -14,7 +14,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