From 8bb8fd459250a4539b711385fdfafbb775e38e79 Mon Sep 17 00:00:00 2001 From: Kiran Kilingar Nadumane Date: Thu, 16 Nov 2023 00:33:37 +0530 Subject: [PATCH] network manager to manage all config --- Earthfile | 10 ++++++++++ networkmanager/manage-all.conf | 0 2 files changed, 10 insertions(+) create mode 100644 networkmanager/manage-all.conf diff --git a/Earthfile b/Earthfile index 42be840..b95bcfb 100644 --- a/Earthfile +++ b/Earthfile @@ -241,6 +241,9 @@ base-image: RUN apt update && \ apt install --no-install-recommends zstd vim network-manager -y + + COPY networkmanager/manage-all.conf /etc/NetworkManager/conf.d/manage-all.conf + IF [ "$UPDATE_KERNEL" = "false" ] RUN if dpkg -l linux-image-generic-hwe-20.04 > /dev/null; then apt-mark hold linux-image-generic-hwe-20.04; fi && \ if dpkg -l linux-image-generic-hwe-22.04 > /dev/null; then apt-mark hold linux-image-generic-hwe-22.04; fi && \ @@ -281,6 +284,13 @@ base-image: # zypper up kernel-default && \ # zypper purge-kernels && \ RUN zypper install -y zstd vim NetworkManager NetworkManager-tui + + COPY networkmanager/manage-all.conf /etc/NetworkManager/conf.d/manage-all.conf + + # removing default wicked manager since NetworkManager is used instead + RUN zypper rm wicked wicked-service + RUN systemctl enable NetworkManager + RUN zypper cc && \ zypper clean END diff --git a/networkmanager/manage-all.conf b/networkmanager/manage-all.conf new file mode 100644 index 0000000..e69de29