packagebuild/cleanup.sh
Sebastian Tobie 3eb72c1a14 updated the images
- added openbao
- added my repos to debian and arch
2025-05-03 20:34:59 +02:00

13 Zeilen
446 B
Bash
Ausführbare Datei

#!/bin/sh
mount=$(buildah mount $1)
[ -z "$mount" ] && (echo "no mount given" ;exit 1)
rm -rvf "$mount"/usr/share/doc/*
rm -rvf "$mount"/usr/share/man/*
rm -rvf "$mount"/usr/share/locale/*
rm -rvf "$mount"/var/lib/apt/lists/*
rm -rvf "$mount"/var/cache/*
rm -rvf "$mount"/tmp/*pod
rm -rvf "$mount"/opt/openbao/tls
rm -rvf "$mount"/etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pubring.gpg~,S.}*
hardlink -potm --reflink=always $mount