]> git.ipfire.org Git - thirdparty/dracut.git/commit
iscsiroot: try targets only once
authorMartin Wilck <mwilck@suse.com>
Thu, 4 Apr 2019 14:16:40 +0000 (16:16 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Oct 2019 07:18:12 +0000 (09:18 +0200)
commitac7582af48e70ed85bcc2c5efb37d45263cdc6ca
tree9119d7cc3b320d2b56600acae2c9ed341366f775
parent0d5597044fb8690997d50b431aca00efb5719954
iscsiroot: try targets only once

In multipath scenarios, "iscsiadm -m node" may contain
several records with the same target.
There's no point in trying "iscsiadm --login" multiple
time for the same target, through the same portal.

Moreover, warn if the desired target is not on the node
list.
modules.d/95iscsi/iscsiroot.sh