mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-07 08:40:59 +00:00
initrd: always set "connection.wait-device-timeout" even if profile has no interface-name set
Since commit 3df662f534
('settings: rework wait-device-timeout
handling and consider device compatibility'), "connection.wait-device-timeout"
works with profiles in general and doesn't require an interface-name
set.
Remove that restriction and let initrd generator create profiles that
always wait.
This commit is contained in:
parent
63daaa6d21
commit
52af5e901e
|
@ -883,11 +883,8 @@ connection_set_needed (NMConnection *connection)
|
|||
NM_SETTING_WIRED_SETTING_NAME))
|
||||
return;
|
||||
|
||||
if (nm_str_is_empty (nm_setting_connection_get_interface_name (s_con)))
|
||||
return;
|
||||
|
||||
g_object_set (s_con,
|
||||
NM_SETTING_CONNECTION_WAIT_DEVICE_TIMEOUT, NMI_WAIT_DEVICE_TIMEOUT_MS,
|
||||
NM_SETTING_CONNECTION_WAIT_DEVICE_TIMEOUT, (int) NMI_WAIT_DEVICE_TIMEOUT_MS,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue