Skip to content
Snippets Groups Projects
Commit 5459adbd 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 860ef92c
Branches
Tags
No related merge requests found
......@@ -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" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment