Jump to content

[Armbian build PR] - rootfs/image: avoid apt junk leftover by `debootstrap`; always cleanup apt cache on target


RSS Bot

Recommended Posts

rootfs/image: avoid apt junk leftover by debootstrap; always cleanup apt cache on target

Thanks to @amazingfate for raising this in https://github.com/armbian/build/pull/5063 - this will save us some 2Tb of storage, not to mention a lot of bandwidth.

  • rootfs: rootfs-create: show a summary of the 20 biggest dirs, right before tarring the rootfs (for debugging)
  • rootfs: rootfs-create: show usage of caches between first and second stages
  • rootfs: rootfs-create: cleanup junk left by debootstrap after second stage
  • rootfs: rootfs-create: always clean apt stuff at the end
  • rename apt_purge_unneeded_packages() to apt_purge_unneeded_packages_and_clean_apt_caches() for clarity
  • image: apt_purge_unneeded_packages_and_clean_apt_caches(): warn if apt caches not empty; clean them off, always.
  • host-utils: local_apt_deb_cache_prepare(): also test the target, warn if not empty
  • extension: cleanup-space-final-image: do NOT clean apt stuff. done in core now
  • the metric sh*t-ton of debugs added should help the next person who faces this in the future

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines