File 0224-95iscsi-setup-bnx2i-offload-connections-properly.patch of Package dracut.13070
From 3ac0a07b762d115b385aa05abcb0c1559f932319 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 27 Sep 2016 12:51:09 +0200
Subject: 95iscsi: setup bnx2i offload connections properly
bnx2i offload connections do not have a corresponding network
device, but needs the 'iscsiuio' daemon to be started.
References: bsc#997598
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
modules.d/95iscsi/iscsiroot.sh | 8 +++-----
modules.d/95iscsi/module-setup.sh | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh
index 6f0a15d..6ad279f 100755
--- a/modules.d/95iscsi/iscsiroot.sh
+++ b/modules.d/95iscsi/iscsiroot.sh
@@ -264,11 +264,9 @@ if [ "$netif" = "timeout" ] && all_ifaces_setup; then
fi
if getargbool 0 rd.iscsi.firmware -d -y iscsi_firmware ; then
- if [ "$netif" = "timeout" ] || [ "$netif" = "online" ]; then
- [ -f /tmp/session-retry ] || echo 1 > /tmp/session-retry
- handle_firmware
- ret=$?
- fi
+ [ -f /tmp/session-retry ] || echo 1 > /tmp/session-retry
+ handle_firmware
+ ret=$?
fi
if ! [ "$netif" = "online" ]; then
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
index 797d4e1..e272b24 100755
--- a/modules.d/95iscsi/module-setup.sh
+++ b/modules.d/95iscsi/module-setup.sh
@@ -279,6 +279,7 @@ install() {
mkdir -p "${initdir}/$systemdsystemunitdir/basic.target.wants"
for i in \
iscsid.service \
+ iscsiuio.service \
; do
ln_r "$systemdsystemunitdir/${i}" "$systemdsystemunitdir/basic.target.wants/${i}"
done
--
2.6.6