Follow up on https://vyos.dev/T5468
Suggestion to also remove the following unused directories from the image (some such as /var/cache/* will be recreated when needed during runtime):
/ usr/local/man / usr/local/share/man / usr/games / usr/local/games / var/cache/*
And the following backup-copies:
/ etc/sudoers.bak / etc/xml/polkitd.xml.old / etc/xml/catalog.old / etc/xml/xml-core.xml.old / root/.gnupg/pubring.kbx~ / var/lib/dpkg/status-old / var/lib/dpkg/diversions-old / var/lib/sgml-base/supercatalog.old
And the following log-files (will be recreated when needed):
/ var/log/apt/history.log / var/log/apt/term.log / var/log/stunnel4/stunnel.log / var/log/nginx/access.log / var/log/nginx/error.log / var/log/squidguard/squidGuard.log / var/log/bootstrap.log / var/log/dpkg.log / var/log/alternatives.log
The above actions will shrink the image by approx 11 MB.
Note: Had to add a space between first / and the rest of the path to bypass the Cloudflare WAF who otherwise would block this post.