Commit 05afb08b authored by Julien Leduc's avatar Julien Leduc
Browse files

systemctl is in a bad state... removing some services according to...

systemctl is in a bad state... removing some services according to https://hub.docker.com/r/centos/systemd/~/dockerfile/
parent 79fd24c2
......@@ -104,6 +104,16 @@ RUN chmod 744 /etc/rc.local
# with an image that already contains selinux
ADD ${BASEDIR}/etc_selinux_config /etc/selinux/config
# remove a few services...
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/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;
# One more thing so that we can use systemd
VOLUME [ "/sys/fs/cgroup" ]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment