File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ if [ -z "${DRACUT_SYSTEMD}" ] \
45
45
fi
46
46
47
47
handle_firmware () {
48
- local ifaces retry
48
+ local ifaces retry _res
49
49
50
50
# Depending on the 'ql4xdisablesysfsboot' qla4xxx
51
51
# will be autostarting sessions without presenting
@@ -69,9 +69,28 @@ handle_firmware() {
69
69
rm /tmp/session-retry
70
70
fi
71
71
72
- if ! iscsiadm -m fw -l; then
72
+ # check to see if we have the new iscsiadm command,
73
+ # that supports the "no-wait" (-W) flag. If so, use it.
74
+ iscsiadm -m fw -l -W 2> /dev/null
75
+ _res=$?
76
+ if [ $_res -eq 7 ]; then
77
+ # ISCSI_ERR_INVALID (7) => "-W" not supported
78
+ info " iscsiadm does not support no-wait firmware logins"
79
+ iscsiadm -m fw -l
80
+ _res=$?
81
+ fi
82
+ if [ $_res -ne 0 ]; then
73
83
warn " iscsiadm: Log-in to iscsi target failed"
74
84
else
85
+ # get a list of connected targets
86
+ tgts=$( cat /sys/firmware/ibft/target* /target-name | sort -u)
87
+ # disable NOPs for each FW target
88
+ for tgt in ${tgts} ; do
89
+ iscsiadm -m node -T " ${tgt} " \
90
+ --op update \
91
+ --name ' node.conn[0].timeo.noop_out_interval' --value 0 \
92
+ --name ' node.conn[0].timeo.noop_out_timeout' --value 0
93
+ done
75
94
need_shutdown
76
95
fi
77
96
fi
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ install() {
188
188
inst_multiple -o iscsiuio
189
189
inst_libdir_file ' libgcc_s.so*'
190
190
inst_multiple umount iscsi-iname iscsiadm iscsid
191
+ inst_binary sort
191
192
192
193
inst_multiple -o \
193
194
" $systemdsystemunitdir " /iscsid.socket \
You can’t perform that action at this time.
0 commit comments