update for minimal image

This commit is contained in:
ston1th 2021-12-11 12:04:00 +01:00
commit a61b819139
2 changed files with 4 additions and 13 deletions

View file

@ -1,10 +1,7 @@
#!/bin/sh
apt-get -y purge alsa-topology-conf alsa-ucm-conf apport \
apport-symptoms bolt byobu eatmydata command-not-found \
eject fonts-ubuntu-console lxd-agent-loader \
nano ntfs-3g pastebinit plymouth plymouth-theme-ubuntu-text \
popularity-contest python3-apport os-prober \
sound-theme-freedesktop
apt-get -y purge alsa-topology-conf alsa-ucm-conf apport at \
bolt eatmydata fonts-ubuntu-console gsettings-desktop-schemas \
htop os-prober pollinate snapd sosreport sound-theme-freedesktop
apt-get -y autoremove --purge
apt-get -y clean
@ -14,12 +11,6 @@ cat <<EOF>/etc/systemd/system/motd-news.service.d/override.conf
ExecStart=/bin/true
EOF
mkdir /etc/systemd/timesyncd.conf.d
cat <<EOF>/etc/systemd/timesyncd.conf.d/ntp.conf
[Time]
NTP=pool.ntp.org
EOF
rm /home/ubuntu/.ssh/authorized_keys
find /var/log -type f | while read f; do echo -ne >$f; done
rm -rf /var/lib/cloud/* /var/tmp/* /tmp/* /tmp/.*-unix

View file

@ -1 +1 @@
22719b169127b311f024c0a8d9f2c1f5c69115b4d0bc7c2224f5ee3cccb15e2f
9fbd939eb8d1ef6157a61bb984a5045339ce361596b8a99a8847280cc785b726