Create 30-virt.sh for layer cleanup

Add cleanup script for build process
This commit is contained in:
humocs-man
2026-04-24 20:44:25 +02:00
committed by GitHub
parent a2b385945f
commit a797072983
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/bash
set -eoux pipefail
# --- 2. Die sofortige Bereinigung (WICHTIG!) ---
echo "Cleaning up this layer..."
dnf5 clean all || true
dnf5 autoremove -y || true
rm -rf /tmp/* /var/tmp/* || true