Move cloud stage cleanup from fsscript to spec where possible.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
7ff7310e30
commit
e0a2e5d886
2 changed files with 31 additions and 10 deletions
|
@ -68,13 +68,4 @@ sed -i '/^USE=\"\${USE}\ \ build\"$/d' /etc/portage/make.conf
|
|||
# clean up system
|
||||
passwd -d root
|
||||
passwd -l root
|
||||
rm -R -f /usr/portage/distfiles/*
|
||||
rm -f /etc/ssh/ssh_host_*
|
||||
rm -f /root/.bash_history
|
||||
rm -f /root/.nano_history
|
||||
rm -f /root/.lesshst
|
||||
rm -f /root/.ssh/known_hosts
|
||||
rm -rf /usr/src/linux
|
||||
rm -rf /usr/src/linux*
|
||||
for i in $(find /var/log -type f); do echo > $i; done
|
||||
for i in $(find /tmp -type f); do rm -f $i; done
|
||||
for i in $(find /var/log -type f); do truncate -s 0 $i; done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue