NetworkManager/src/initrd
Beniamino Galvani 2572f7c821 initrd: generate ipv6.method=auto for ip=dhcp6
When a 'ip=auto6' option is passed to kernel, the old dracut network
module only sets accept_ra in kernel and wait for the address to
appear. Instead, with a 'ip=dhcp6' option it starts 'dhclient -6',
leaving accept_ra to the initial value (that is already 1). So
'ip=dhcp6' in practice does kernel IPv6 autoconf and DHCPv6 at the
same time, without honoring the 'Managed' flag of the router
advertisement.

It seems that the only reason to have distinct 'auto6' and 'dhcp6'
options was that network module did not support starting DHCPv6 only
when necessary based on the M flag of the RA; so the user had to
specify if DHCPv6 was needed or not.

Given that 1) NM is smarter and can start DHCPv6 only when needed by
RA; 2) DHCPv6 alone only gets a /128 address without a prefix route
and so it's not useful; then it makes sense to generate a connection
with 'ipv6.method=auto' for both 'ip=auto6' and 'ip=dhcp6'.

https://bugzilla.redhat.com/show_bug.cgi?id=1854323
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/571
(cherry picked from commit ca3d0a8f06)
2020-07-09 14:48:29 +02:00
..
tests initrd: generate ipv6.method=auto for ip=dhcp6 2020-07-09 14:48:29 +02:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
nm-initrd-generator.c initrd: write the hostname to stdout with --stdout 2020-07-06 09:59:33 +02:00
nm-initrd-generator.h initrd: save hostname to a file in /run 2020-05-06 10:32:25 +02:00
nmi-cmdline-reader.c initrd: generate ipv6.method=auto for ip=dhcp6 2020-07-09 14:48:29 +02:00
nmi-dt-reader.c initrd: use nm_streq()/NM_IN_STRSET() instead of strcmp() 2020-06-03 18:00:05 +02:00
nmi-ibft-reader.c initrd: drop unused include of platform header 2020-06-03 18:08:37 +02:00