Skip to content

Commit

Permalink
fix(iscsi): don't require network setup for qedi
Browse files Browse the repository at this point in the history
This adds the logic of cc2c48a ("fix(iscsi): don't require network setup
for bnx2i") for the qedi iSCSI offload driver. Testing has shown
that for qedi, network setup in the initrd is even more superfluous
as it is for bnx2i. qedi devices are usually separate PCI functions
that don't show up as ethernet interfaces at all.

While at it, simplify the conditional a bit.

Signed-off-by: Martin Wilck <mwilck@suse.com>
  • Loading branch information
mwilck committed Feb 26, 2025
1 parent 8b5f825 commit 2da7fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion man/dracut.cmdline.7.asc
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ iscsistart -b --param node.session.timeo.replacement_timeout=30
up iSCSI connections. This parameter indicates that network setup can be
skipped in the initramfs, which makes booting with iSCSI offload cards
faster and more reliable. This parameter currently only has an effect for
_<transport_name>=bnx2i_.
_<transport_name>=bnx2i_ or _<transport_name>=qedi_.
FCoE
~~~~
Expand Down
5 changes: 3 additions & 2 deletions modules.d/95iscsi/parse-iscsiroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ fi

# iscsi_firmware does not need argument checking
if [ -n "$iscsi_firmware" ]; then
if [ "$root" != "dhcp" ] && [ "$netroot" != "dhcp" ]; then
[ -z "$netroot" ] && [ "$iscsi_transport" != bnx2i ] && netroot=iscsi:
if [ "$root" != "dhcp" ] && [ -z "$netroot" ] \
&& [ "$iscsi_transport" != bnx2i ] && [ "$iscsi_transport" != qedi ]; then
netroot=iscsi:
fi
modprobe -b -q iscsi_boot_sysfs 2> /dev/null
modprobe -b -q iscsi_ibft
Expand Down

0 comments on commit 2da7fec

Please sign in to comment.