functions: inform cloud-init about network manager

LP: #1982855
Co-authored-by: Chad Smith <chad.smith@canonical.com>
ui-by-default-wip
Dan Bungert 2 years ago
parent 0e3f689432
commit eb0530b7a7

@ -989,6 +989,16 @@ network:
version: 2 version: 2
renderer: NetworkManager renderer: NetworkManager
EOF EOF
# inform cloud-init of the same (LP: #1982855)
mkdir -p chroot/etc/cloud/cloud.cfg.d
cat <<EOF > chroot/etc/cloud/cloud.cfg.d/99-installer-use-networkmanager.cfg
# Let NetworkManager manage all devices on this system
system_info:
network:
renderers: ['network-manager']
activators: ['network-manager']
EOF
else else
echo "==== NetworkManager not installed ====" echo "==== NetworkManager not installed ===="
fi fi

Loading…
Cancel
Save