make cloud-prep.sh more robust
This commit is contained in:
parent
ae28559033
commit
1fe49e110b
1 changed files with 7 additions and 3 deletions
|
@ -59,7 +59,9 @@ etc-update --automode -5
|
||||||
|
|
||||||
# Clean up portage
|
# Clean up portage
|
||||||
emerge --verbose=n --depclean
|
emerge --verbose=n --depclean
|
||||||
|
if [[ -a /usr/bin/eix ]]; then
|
||||||
eix-update
|
eix-update
|
||||||
|
fi
|
||||||
emaint all -f
|
emaint all -f
|
||||||
eselect news read all
|
eselect news read all
|
||||||
eclean-dist --destructive
|
eclean-dist --destructive
|
||||||
|
@ -73,5 +75,7 @@ for i in $(find /var/log -type f); do truncate -s 0 $i; done
|
||||||
find /usr/share/man/ -mindepth 1 -maxdepth 1 -path "/usr/share/man/man*" -prune -o -exec rm -rf {} \;
|
find /usr/share/man/ -mindepth 1 -maxdepth 1 -path "/usr/share/man/man*" -prune -o -exec rm -rf {} \;
|
||||||
|
|
||||||
# fine if this fails, aka non-hardened
|
# fine if this fails, aka non-hardened
|
||||||
|
if -a [[ /usr/sbin/migrate-pax ]]; then
|
||||||
echo 'migraging pax'
|
echo 'migraging pax'
|
||||||
/usr/sbin/migrate-pax -m
|
/usr/sbin/migrate-pax -m
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue