diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index a26ba63fce..135f4ea4a9 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -402,6 +402,10 @@ RUN sed -i \ {# endif base_package_type deb #} {% endif %} +{% if base_distro == 'centos' or base_distro == 'rhel' %} +RUN sed -ri '/-session(\s+)optional(\s+)pam_systemd.so/d' /etc/pam.d/system-auth +{% endif %} + COPY set_configs.py /usr/local/bin/kolla_set_configs COPY start.sh /usr/local/bin/kolla_start COPY sudoers /etc/sudoers