Skip to content

Commit

Permalink
Remove unsupported network-scripts package
Browse files Browse the repository at this point in the history
Replace network-scripts with NetworkManager and NetworkManager-initscripts-updown.
Remove network-scripts-openvswitch. Enable NetworkManager for ifcfg-enp3s0f0s0 and
ifcfg-enp3s0f1s0.

Signed-off-by: Vladimir Sokolovsky <[email protected]>
  • Loading branch information
vladsokolovsky committed Oct 18, 2023
1 parent 6fe398e commit 9f82043
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions oraclelinux/8/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN yum install -y \
libreswan yum-utils \
device-mapper-persistent-data lvm2 acpid perf popt-devel bc lm_sensors \
cryptsetup rasdaemon pciutils-devel watchdog kexec-tools jq python3-pip libnghttp2 wget \
annobin kernel-rpm-macros iproute-tc network-scripts usbutils nfs-utils python3-six chkconfig \
annobin kernel-rpm-macros iproute-tc NetworkManager NetworkManager-initscripts-updown usbutils nfs-utils python3-six chkconfig \
dosfstools e2fsprogs openssh-server

RUN yum groupinstall -y "Development Tools"
Expand All @@ -42,7 +42,7 @@ RUN yum install -y git gcc make flex bison rpm-build python3 openssl-devel elfut

# enable ol8 Code Ready Builder for installing meson
RUN yum-config-manager --set-enabled ol8_codeready_builder
RUN yum install -y vim meson sudo parted xfsprogs net-tools NetworkManager audit plymouth
RUN yum install -y vim meson sudo parted xfsprogs net-tools audit plymouth

RUN yum install -y redhat-lsb-core

Expand Down
6 changes: 3 additions & 3 deletions oraclelinux/8/Dockerfile.run
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN dnf install --disableexcludes=kubernetes -y \
lsof libreswan yum-utils device-mapper-persistent-data lvm2 acpid perf \
popt-devel bc lm_sensors cryptsetup rasdaemon pciutils-devel watchdog \
kexec-tools jq python3-pip libnghttp2 wget annobin kernel-rpm-macros \
iproute-tc network-scripts usbutils nfs-utils python3-six chkconfig \
iproute-tc NetworkManager NetworkManager-initscripts-updown usbutils nfs-utils python3-six chkconfig \
dosfstools e2fsprogs openssh-server ipmitool \
@BASE_URL@/doca/@DOCA_VERSION@/extras/addons/containerd.io-1.6.22-3.1.el8.aarch64.rpm \
@BASE_URL@/doca/@DOCA_VERSION@/extras/addons/cri-tools-1.25.0-0.aarch64.rpm \
Expand All @@ -60,7 +60,7 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle \n\
gpgcheck=1 \n\
enabled=1' > /etc/yum.repos.d/oracle-codeready-ol8.repo

RUN yum install -y vim sudo parted xfsprogs net-tools NetworkManager audit plymouth
RUN yum install -y vim sudo parted xfsprogs net-tools audit plymouth
RUN yum install -y python3-prometheus_client libbsd libbsd-devel

RUN yum install -y redhat-lsb-core
Expand All @@ -78,7 +78,7 @@ enabled=1' > /etc/yum.repos.d/oracle-doca-ol8.repo

RUN dnf install -y rdma-core rdma-core-devel libibverbs-utils.aarch64 mstflint infiniband-diags infiniband-diags-compat libibumad librdmacm-utils python3-pyverbs

RUN dnf install -y bf-release doca-cx-apps doca-cx-apps-devel doca-cx-libs doca-cx-libs-devel doca-cx-prime-runtime doca-cx-prime-sdk doca-cx-prime-tools doca-cx-samples meson mlnx-dpdk mlnx-dpdk-devel mlnx-tools mlxbf-bfscripts mlxbf-bootctl network-scripts-openvswitch openvswitch openvswitch-ipsec python3-openvswitch mlx-OpenIPMI mft mft-oem mlnx-fw-updater
RUN dnf install -y bf-release doca-cx-apps doca-cx-apps-devel doca-cx-libs doca-cx-libs-devel doca-cx-prime-runtime doca-cx-prime-sdk doca-cx-prime-tools doca-cx-samples meson mlnx-dpdk mlnx-dpdk-devel mlnx-tools mlxbf-bfscripts mlxbf-bootctl openvswitch openvswitch-ipsec python3-openvswitch mlx-OpenIPMI mft mft-oem mlnx-fw-updater

RUN echo BlueField_OS_@BF_VERSION@_OL_@DISTRO_VERSION@-@BUILDVER@.@IMAGE_TYPE@@CUSTOM_VERSION@ > /etc/mlnx-release

Expand Down
4 changes: 4 additions & 0 deletions oraclelinux/8/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@ interface "oob_net0" {
}
EOF

# Enable NetworkManager for ifcfg-enp3s0f0s0 and ifcfg-enp3s0f1s0
sed -i 's@NM_CONTROLLED="no"@NM_CONTROLLED="yes"@' /mnt/etc/sysconfig/network-scripts/ifcfg-enp3s0f0s0
sed -i 's@NM_CONTROLLED="no"@NM_CONTROLLED="yes"@' /mnt/etc/sysconfig/network-scripts/ifcfg-enp3s0f1s0

# Customisations per PSID
FLINT=""
if [ -x /usr/bin/mstflint ]; then
Expand Down

0 comments on commit 9f82043

Please sign in to comment.