diff --git a/molecule/Dockerfile-rhel-java11.j2 b/molecule/Dockerfile-rhel-java11.j2 index 9bdabc970..65035c619 100644 --- a/molecule/Dockerfile-rhel-java11.j2 +++ b/molecule/Dockerfile-rhel-java11.j2 @@ -3,9 +3,9 @@ LABEL maintainer="CP Ansible" ENV container docker RUN microdnf -y --nodocs install yum -RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ -systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ +# RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ +# systemd-tmpfiles-setup.service ] || rm -f $i; done); \ +RUN rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ diff --git a/molecule/Dockerfile-rhel-java17.j2 b/molecule/Dockerfile-rhel-java17.j2 index 76d68cdbf..2f82bafc1 100644 --- a/molecule/Dockerfile-rhel-java17.j2 +++ b/molecule/Dockerfile-rhel-java17.j2 @@ -3,9 +3,9 @@ LABEL maintainer="CP Ansible" ENV container docker RUN microdnf -y --nodocs install yum -RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ -systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ +# RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ +# systemd-tmpfiles-setup.service ] || rm -f $i; done); \ +RUN rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ diff --git a/molecule/Dockerfile-rhel-java8.j2 b/molecule/Dockerfile-rhel-java8.j2 index aae004c61..43da14d6a 100644 --- a/molecule/Dockerfile-rhel-java8.j2 +++ b/molecule/Dockerfile-rhel-java8.j2 @@ -3,9 +3,9 @@ LABEL maintainer="CP Ansible" ENV container docker RUN microdnf -y --nodocs install yum -RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ -systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ +# RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ +# systemd-tmpfiles-setup.service ] || rm -f $i; done); \ +RUN rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ diff --git a/molecule/Dockerfile-rhel-tar.j2 b/molecule/Dockerfile-rhel-tar.j2 index 3480b7b16..a8fba19f3 100644 --- a/molecule/Dockerfile-rhel-tar.j2 +++ b/molecule/Dockerfile-rhel-tar.j2 @@ -3,9 +3,9 @@ LABEL maintainer="CP Ansible" ENV container docker RUN microdnf -y --nodocs install yum -RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ -systemd-tmpfiles-setup.service ] || rm -f $i; done); \ -rm -f /lib/systemd/system/multi-user.target.wants/*;\ +# RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \ +# systemd-tmpfiles-setup.service ] || rm -f $i; done); \ +RUN rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ rm -f /lib/systemd/system/sockets.target.wants/*udev*; \