network: clone connections from intramfs to persistent config
In case of common connection ("Wired connection") being used for multiple
devices in initramfs (which happens in case of ip=dhcp or no ip= specified) the
connection was not used for persistent configuration of the devices and instead
a default connection created by Anaconda was used. Let's clone the "Wired
connection" into the default connection created by Anaconda so that its
properties (like default ipv6.addr-gen-mode or
ipv4.dhcp-vendor-class-identifier) are preserved.
Originally related to rhbz#1870692
Resolves: rhbz#1910438
Port of
commit 05a80bb599d6e2ea694279ed4257a11a361b894d
commit 71ca92aa4b09b5f186b8e1a8449ca7b4dae53e80
commit 010e5fc8dc6de9fd7ecd20d4bcd0815dfa8a1555
from master
network: update docstring of clone_connection_async
Also fix a minor style issue.