From eb0530b7a7bf39a235848d290dd6c231e642c731 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Tue, 26 Jul 2022 10:05:42 -0600 Subject: [PATCH] functions: inform cloud-init about network manager LP: #1982855 Co-authored-by: Chad Smith --- live-build/functions | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/live-build/functions b/live-build/functions index a6fa5bf2..1c978a4c 100644 --- a/live-build/functions +++ b/live-build/functions @@ -989,6 +989,16 @@ network: version: 2 renderer: NetworkManager EOF + + # inform cloud-init of the same (LP: #1982855) + mkdir -p chroot/etc/cloud/cloud.cfg.d + cat < 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 echo "==== NetworkManager not installed ====" fi