[Dockerfile] adding execution of script/post-update, cleanup phase

This commit is contained in:
mudler
2015-06-26 13:47:17 +02:00
parent da5c2d5c20
commit b7314075e5
2 changed files with 25 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
# Remove scripts
rm -rf /equo-rescue-generate.exp
rm -rf /equo.sql
rm -rf /generate-equo-db.sh
rm -rf /post-upgrade.sh
rm -rf /sabayon-configuration-build.sh
rm -rf /sabayon-configuration.sh
rm -rf /post-upgrade.sh
# Cleaning portage metadata cache
rm -rf /usr/portage/metadata/md5-cache/*
rm -rf /var/log/emerge/*
rm -rf /var/log/entropy/*
rm -rf /root/* /root/.*
rm -rf /etc/zsh
rm -rf /post-update.sh
# Writing package list file
equo q list installed -qv > /etc/sabayon-pkglist