From: Daniel Molkentin Date: Tue, 12 Feb 2019 15:55:26 +0000 (+0100) Subject: 95iscsi: handle qedi like bnx2i X-Git-Tag: 050~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3edd247ce03681df2153aade111141771373f03;p=thirdparty%2Fdracut.git 95iscsi: handle qedi like bnx2i 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 --- diff --git a/modules.d/95iscsi/cleanup-iscsi.sh b/modules.d/95iscsi/cleanup-iscsi.sh index bfc8aefc5..789c33f03 100755 --- a/modules.d/95iscsi/cleanup-iscsi.sh +++ b/modules.d/95iscsi/cleanup-iscsi.sh @@ -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 diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh index 6a12a1087..106d0e7ba 100755 --- a/modules.d/95iscsi/iscsiroot.sh +++ b/modules.d/95iscsi/iscsiroot.sh @@ -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