iscsi,nbd: do not fail in hostonly mode
parent
90441c4476
commit
d014032c62
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue