]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95iscsi: handle qedi like bnx2i
authorDaniel Molkentin <dmolkentin@suse.com>
Tue, 12 Feb 2019 15:55:26 +0000 (16:55 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Oct 2019 09:38:17 +0000 (11:38 +0200)
The new qedi driver needs to be handled just like
the bnx2i driver, so update 95iscsi scripts to do this.

References: bsc#1113712

Signed-off-by: Lee Duncan <lduncan@suse.com>
modules.d/95iscsi/cleanup-iscsi.sh
modules.d/95iscsi/iscsiroot.sh

index bfc8aefc588ff37b1b216cb961f58897394d275e..789c33f03ea40555dd01a83d2db4bae247de4e56 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
 
-[ -z "${DRACUT_SYSTEMD}" ] && [ -e /sys/module/bnx2i ] && killproc iscsiuio
-
+if [[ -z "${DRACUT_SYSTEMD}" ]] && ( [[ -e /sys/module/bnx2i ]] || [[ -e /sys/module/qedi ]] ) ; then
+      killproc iscsiuio
+fi
index 6a12a108769f02b61c8f1b954106efe6c1b2a881..106d0e7ba4240a7def79a52737d5700caa7c4c04 100755 (executable)
@@ -36,9 +36,12 @@ iroot=${iroot#:}
 # figured out a way how to check whether this is built-in or not
 modprobe crc32c 2>/dev/null
 
-if [ -z "${DRACUT_SYSTEMD}" ] && [ -e /sys/module/bnx2i ] && ! [ -e /tmp/iscsiuio-started ]; then
-        iscsiuio
-        > /tmp/iscsiuio-started
+# start iscsiuio if needed
+if [[ -z "${DRACUT_SYSTEMD}" ]] && \
+      ( [[ -e /sys/module/bnx2i ]] || [[ -e /sys/module/qedi ]] ) && \
+       ! [ -e /tmp/iscsiuio-started ]; then
+      iscsiuio
+      > /tmp/iscsiuio-started
 fi