tests - fix Linux systemd bug when writing to /tmp folder

This commit is contained in:
bunkerity
2021-08-17 09:35:50 +02:00
parent 2b3b4a5c3f
commit 6c8bc6b349
6 changed files with 41 additions and 10 deletions

View File

@@ -1,3 +1,12 @@
FROM ubuntu:focal
RUN apt update && apt install -y systemd
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/*;