Update systemd

This commit is contained in:
Kirigaya Kazuto 2021-06-10 10:16:58 +08:00
parent 26538a904e
commit 41438630b2
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ RUN apt update \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* /var/tmp/* \
&& rm /root/preseed.cfg \
&& sed 's/ProtectHostname=yes/ProtectHostname=no/g' -i /lib/systemd/system/systemd-logind.service \
&& cd /lib/systemd/system/sysinit.target.wants/ \
&& ls | grep -v systemd-tmpfiles-setup | xargs rm -f $1 \
&& rm -f /lib/systemd/system/multi-user.target.wants/* \

View File

@ -1,3 +1,5 @@
# ubuntu-cn-systemd
Ubuntu with systemd installed. Time zone is set to `Asia/Shanghai`
systemd-logind.service: `ProtectHostname` set to `no`.