]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(network): IPv6: don't wait for RA for static IPv6 assignments
authorMartin Wilck <mwilck@suse.com>
Tue, 7 Feb 2023 21:24:15 +0000 (22:24 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 13 Feb 2023 15:17:45 +0000 (16:17 +0100)
This patch reverts commit
c603419 ("wait for IPv6 RA if using none/static IPv6 assignment").
It's not generally correct wait for a default route to be established
for an interface, or to wait for "proto ra" routes in general.
For example, if the system is a router itself, it will receive no
RAs. In isolated networks, no gateway may be advertized, either.
This is similar in spirit to 76f6566 ("Revert "wait for IPv6 RA
if using none/static IPv6 assignment"")

Whatever c603419 ("wait for IPv6 RA if using none/static IPv6 assignment")
was supposed to achieve, it should be done differently.

modules.d/40network/net-lib.sh

index 77d458d80b4b313ccf251c20c94047b227264339..02845dbc3572204c74fcacb587abfc69dab46f1a 100755 (executable)
@@ -727,7 +727,6 @@ wait_for_ipv6_dad() {
     while [ $cnt -lt $timeout ]; do
         [ -n "$(ip -6 addr show dev "$@")" ] \
             && [ -z "$(ip -6 addr show dev "$@" tentative)" ] \
-            && { ip -6 route list proto ra dev "$@" | grep -q ^default; } \
             && return 0
         [ -n "$(ip -6 addr show dev "$@" dadfailed)" ] \
             && return 1