diff --git a/arch-ansible-latest/Dockerfile b/arch-ansible-latest/Dockerfile index 582f7f6..a6f2eb7 100644 --- a/arch-ansible-latest/Dockerfile +++ b/arch-ansible-latest/Dockerfile @@ -7,7 +7,7 @@ RUN pacman -S -y \ sudo \ systemd \ && \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -vf $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -vf $i; done) \ rm -vf /lib/systemd/system/multi-user.target.wants/*; \ rm -vf /etc/systemd/system/*.wants/*; \ rm -vf /lib/systemd/system/local-fs.target.wants/*; \ diff --git a/centos7-ansible-latest/Dockerfile b/centos7-ansible-latest/Dockerfile index 18445d1..1cf43a6 100644 --- a/centos7-ansible-latest/Dockerfile +++ b/centos7-ansible-latest/Dockerfile @@ -6,7 +6,7 @@ ENV LC_ALL en_US.UTF-8 # Install systemd -- See https://hub.docker.com/_/centos/ RUN yum -y update; yum clean all; \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ diff --git a/centos8-ansible-latest/Dockerfile b/centos8-ansible-latest/Dockerfile index faf91d2..5aa53bc 100644 --- a/centos8-ansible-latest/Dockerfile +++ b/centos8-ansible-latest/Dockerfile @@ -4,7 +4,7 @@ ENV container=docker # Install systemd -- See https://hub.docker.com/_/centos/ RUN yum -y update; yum clean all; \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ diff --git a/centosstream8-ansible-latest/Dockerfile b/centosstream8-ansible-latest/Dockerfile index b2b106c..0c03843 100644 --- a/centosstream8-ansible-latest/Dockerfile +++ b/centosstream8-ansible-latest/Dockerfile @@ -4,7 +4,7 @@ ENV container=docker # Install systemd -- See https://hub.docker.com/_/centos/ RUN yum -y update; yum clean all; \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ diff --git a/fedora37-ansible-latest/Dockerfile b/fedora37-ansible-latest/Dockerfile index e54b4c6..5959b04 100644 --- a/fedora37-ansible-latest/Dockerfile +++ b/fedora37-ansible-latest/Dockerfile @@ -3,7 +3,7 @@ LABEL maintainer="Sebastian Gumprich; Nejc Habjan; Diego Louzan; Max Wittig" # Enable systemd. RUN dnf -y install systemd && dnf clean all && \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ diff --git a/fedora38-ansible-latest/Dockerfile b/fedora38-ansible-latest/Dockerfile index b7b089d..5190444 100644 --- a/fedora38-ansible-latest/Dockerfile +++ b/fedora38-ansible-latest/Dockerfile @@ -3,7 +3,7 @@ LABEL maintainer="Sebastian Gumprich, Nejc Habjan, Diego Louzan, Max Wittig" # Enable systemd. RUN dnf -y install systemd && dnf clean all && \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \ diff --git a/rocky8-ansible-latest/Dockerfile b/rocky8-ansible-latest/Dockerfile index 30c668b..cfe8f2b 100644 --- a/rocky8-ansible-latest/Dockerfile +++ b/rocky8-ansible-latest/Dockerfile @@ -4,7 +4,7 @@ ENV container=docker # Install systemd -- See https://hub.docker.com/_/centos/ RUN yum -y update; yum clean all; \ - for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done \ + (for i in /lib/systemd/system/sysinit.target.wants/*; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) \ rm -f /lib/systemd/system/multi-user.target.wants/*;\ rm -f /etc/systemd/system/*.wants/*;\ rm -f /lib/systemd/system/local-fs.target.wants/*; \