mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 08:40:09 +01:00
initrd: honor "ip=single-dhcp" option as alias for "dhcp"
This mode was added to network-legacy in [1]. NetworkManager anyway always does DHCP in parallel, so this is basically an alias for "dhcp". Note that network-legacy's "single-dhcp" will stop waiting for DHCP once the first device gets an address. NetworkManager currently cannot do that. While it runs DHCP in parallel, all devices need to settle and there is no concept where completing one device makes the overall "startup complete" process finish early. That could however be added. Anyway, while not being exactly the same, it's still more useful to do something similar instead of not working at all. See-also: https://github.com/dracutdevs/dracut/pull/853 See-also: https://github.com/dracutdevs/dracut/pull/961 See-also: https://github.com/dracutdevs/dracut/pull/1048 [1]4026cd3b01(cherry picked from commitbf7530ccc1)
This commit is contained in:
parent
d2075ac770
commit
c880b9eab9
1 changed files with 1 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ reader_parse_ip(Reader *reader, const char *sysfs_dir, char *argument)
|
|||
NM_SETTING_IP4_CONFIG_METHOD_DISABLED,
|
||||
NULL);
|
||||
}
|
||||
} else if (nm_streq0(kind, "dhcp")) {
|
||||
} else if (NM_IN_STRSET(kind, "dhcp", "single-dhcp")) {
|
||||
g_object_set(s_ip4,
|
||||
NM_SETTING_IP_CONFIG_METHOD,
|
||||
NM_SETTING_IP4_CONFIG_METHOD_AUTO,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue