2021-08-16 15:21:44 +02:00
|
|
|
FROM fedora:34
|
|
|
|
|
2021-08-18 11:36:19 +02:00
|
|
|
RUN dnf install -y systemd findutils
|
2021-08-17 09:35:50 +02:00
|
|
|
|
|
|
|
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/*;\
|
2021-08-17 14:02:15 +02:00
|
|
|
rm -f /lib/systemd/system/anaconda.target.wants/*;\
|
|
|
|
rm -f /lib/systemd/system/*tmpfiles*;\
|
|
|
|
rm -f /lib/systemd/user/*tmpfiles*;\
|
2021-08-18 11:36:19 +02:00
|
|
|
find /lib/systemd/ -type f -iname "*.service" -exec rm -f {} \;
|