For independent hardware iSCSI HBA, the network config will be recorded
in the firmware BIOS. It fails to use normal means(like iscsiadm) to
detect iSCSI session details, since HBA firmware doesn't expose the
session to running kernel.
Mute the error message when kdump detects iSCSI session by iscsiadm.
Signed-off-by: Minfei Huang <mhuang(a)redhat.com>
---
dracut-module-setup.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 9b398eb..1736315 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -512,9 +512,9 @@ kdump_setup_iscsi_device() {
# Check once before getting explicit values, so we can output a decent
# error message.
- if ! /sbin/iscsiadm -m session -r ${path} >/dev/null ; then
- derror "Unable to find iscsi record for $path"
- return 1
+ if ! /sbin/iscsiadm -m session -r ${path} 2>&- > /dev/null ; then
+ # Yes, it is hardware iscsi HBA.
+ return
fi
tgt_name=$(kdump_iscsi_get_rec_val ${path} "node.name")
--
2.1.0
Show replies by date