nm-in-container: add NetworkManager.service override

This commit is contained in:
Thomas Haller
2023-06-30 15:44:05 +02:00
parent ad4e068bfd
commit 6985c011c7
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# Overrides for NetworkManager.service with nm-in-container
# Placed in /etc/systemd/system/NetworkManager.service.d/
[Service]
Environment=G_DEBUG=fatal-warnings
Environment=NM_OBFUSCATE_PTR=0

View File

@@ -484,6 +484,8 @@ RUN dnf clean all
RUN pip3 install --user behave_html_formatter || true RUN pip3 install --user behave_html_formatter || true
RUN mkdir -p /etc/systemd/system/NetworkManager.service.d
COPY data-NM-log "/usr/bin/NM-log" COPY data-NM-log "/usr/bin/NM-log"
COPY data-nm-env-prepare.sh "/usr/bin/nm-env-prepare.sh" COPY data-nm-env-prepare.sh "/usr/bin/nm-env-prepare.sh"
COPY data-nm-deploy.sh "/usr/bin/nm-deploy.sh" COPY data-nm-deploy.sh "/usr/bin/nm-deploy.sh"
@@ -497,6 +499,7 @@ COPY data-bash_history /root/.bash_history
COPY data-gdbinit /root/.gdbinit COPY data-gdbinit /root/.gdbinit
COPY data-gdb_history /root/.gdb_history COPY data-gdb_history /root/.gdb_history
COPY data-behaverc /root/.behaverc COPY data-behaverc /root/.behaverc
COPY data-etc-systemd-20-nm-in-container.override /etc/systemd/system/NetworkManager.service.d/20-nm-in-container.override
RUN systemctl enable NetworkManager RUN systemctl enable NetworkManager