core/devices: generate connections with autoconnect=true

Previously, when a generated connection was edited, and the
machine was rebooted, the connection would not apply, and a
new generated connection would be made, because autoconnect
was set to FALSE.

Set autoconnect to be true by default, so that the modified
generated connection is applied.
This commit is contained in:
Jan Vaclav 2025-04-08 13:00:13 +02:00
parent f489d213f2
commit 2953200a65

View file

@ -9548,7 +9548,7 @@ nm_device_generate_connection(NMDevice *self,
NM_SETTING_CONNECTION_ID,
ifname,
NM_SETTING_CONNECTION_AUTOCONNECT,
FALSE,
TRUE,
NM_SETTING_CONNECTION_INTERFACE_NAME,
ifname,
NM_SETTING_CONNECTION_TIMESTAMP,