]> git.ipfire.org Git - thirdparty/dracut.git/commit
Dracut: only login to one target at a time
authorLee Duncan <lduncan@suse.com>
Mon, 25 Mar 2019 23:49:19 +0000 (16:49 -0700)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 25 Oct 2019 07:18:12 +0000 (09:18 +0200)
commit1ab6778ee405d684da4ab34d2e1502c2c29c2e96
tree2dfe8303ed091262183e0e4f256a0d6aa61f8d84
parent7f0b48627a8cfdaba7263a35c827ff73e956a65c
Dracut: only login to one target at a time

For handling the configuration where there are two
paths to an iscsi root target, each using a different
NIC. In such a case, the initramfs was trying to configure
the first NIC, then call iscsiroot to login to both targets,
which would fail for the 2nd target, since the path to the
2nd target was not yet configured. This would eventually
work after a timeout. But it's better to login to just
one target at a time.
This change makes the initramfs handle multiple paths to an
iscsi target better by logging into only one target at a time,
rather than trying to login to all targets when only one of
several NICs is up.

This can be further optimized by using the initrd parameter
"rd.iscsi.testroute", which would skip iscsiadm login attempts
for targets to which no route exists.

If the script is called again via the timeout initqueue,
we try "iscsiadm -L onboot" again, hoping that some targets
may now have become reachable.
modules.d/95iscsi/iscsiroot.sh