Files
diskimage-builder/diskimage_builder/elements/rocky-container/containerfiles/9
Bartosz Bezak 14754b21a4 Add NetworkManager-config-server to rocky-container
It prevents NetworkManager from automatically running DHCP on
unconfigured ethernet devices and allows connections with static IP
addresses to be brought up even on ethernet devices with no carrier.
This is default in Server or Server with GUI RHEL installations.

Change-Id: I15f4a28a257dc1b30f8957fd9ad41aef3c9de385
2023-12-06 12:57:44 +00:00

13 lines
486 B
Plaintext

FROM docker.io/rockylinux/rockylinux:9
RUN dnf install -y findutils util-linux sudo python3 NetworkManager NetworkManager-config-server
RUN systemctl unmask console-getty.service dev-hugepages.mount \
getty.target sys-fs-fuse-connections.mount systemd-logind.service \
systemd-remount-fs.service
# /etc/machine-id needs to be populated for /bin/kernel-install to
# correctly copy kernels into /boot. We will clear this out in the
# final image.
RUN systemd-machine-id-setup