Skip to content

Commit

Permalink
network manager to manage all config
Browse files Browse the repository at this point in the history
  • Loading branch information
kirankn8 committed Nov 15, 2023
1 parent b5ed5f4 commit 8bb8fd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -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
Expand Down
Empty file added networkmanager/manage-all.conf
Empty file.

0 comments on commit 8bb8fd4

Please sign in to comment.