Skip to content

[th/assume-initrd-not-modify-connection] core: fix modifying connection during recheck_assume_connection()

Thomas Haller requested to merge th/assume-initrd-not-modify-connection into master

Since commit d35d3c46 ('settings: rework tracking settings connections and settings plugins') must settings connections not be modified. They must be treated immutable and only updated by replacing them with a new variant. There is even an assertion for that.

Fix the code that attempts to modify an existing NMConnection.

https://bugzilla.redhat.com/show_bug.cgi?id=1900536

Fixes: f2fe6c03 ('manager: don't treat the initramfs-configured DHCP connections as generated')

Merge request reports