build: create /etc/selinux/config in case it is missing

Sometimes the Ceph container images seem to have a broken scriptlet
while installing/updating Ceph packages. It is relatively common for
them to fail when `/etc/selinux/config` does not exist. By ensuring the
file directory and file exist (even if empty), the package installation
or upgrades succeed.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2023-12-19 10:03:45 +01:00
parent 29f1aba3fc
commit 24d6b5fe3f
3 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,8 @@ FROM ${BASE_IMAGE} as updated_base
RUN dnf config-manager --disable \
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch,ceph-iscsi,ganesha || true
RUN mkdir /etc/selinux || true && touch /etc/selinux/config
RUN dnf -y update --nobest \
&& dnf -y install nfs-utils \
&& dnf clean all \