Skip to content

Commit

Permalink
image cleanup
Browse files Browse the repository at this point in the history
autoclean is a weaker version of clean and thus redundant

cleanup stray binary if it exists
  • Loading branch information
wiedehopf committed Nov 6, 2024
1 parent 7547405 commit 985662f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/modules/adsb-feeder/end_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ sed -i -e 's/.*SystemMaxUse=.*/SystemMaxUse=128M/' /etc/systemd/journald.conf


# free up space
apt clean
apt-get clean -y
find /var/lib/apt/lists | grep -v InRelease | xargs rm -rf
rm -rf /tmp/* /var/log/* /var/cache/debconf/templates.dat* /var/lib/dpkg/status-old

# not sure where this binary comes from, remove it!
rm -f /usr/bin/qemu-aarch64-static

dd if=/dev/zero of=/zeroes bs=1M || true
rm -f /zeroes
1 change: 0 additions & 1 deletion src/modules/lepotato-raspbian/end_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

### Cleanup
apt-get clean -y
apt-get autoclean -y
find /var/lib/apt/lists | grep -v InRelease | xargs rm -rf
rm -rf /tmp/* /var/log/* /var/cache/debconf/templates.dat* /var/lib/dpkg/status-old

Expand Down

0 comments on commit 985662f

Please sign in to comment.