From: Martin Wilck Date: Tue, 7 Feb 2023 21:24:15 +0000 (+0100) Subject: fix(network): IPv6: don't wait for RA for static IPv6 assignments X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=726d56ca0a23e5a39de5f809da2d20ce7985d437;p=thirdparty%2Fdracut.git fix(network): IPv6: don't wait for RA for static IPv6 assignments 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. --- diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh index 77d458d80..02845dbc3 100755 --- a/modules.d/40network/net-lib.sh +++ b/modules.d/40network/net-lib.sh @@ -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