zero drive seems to not work
This commit is contained in:
@@ -98,10 +98,6 @@ sudo sed -ri '/\sswap\s/s/^#?/#/' /etc/fstab
|
|||||||
# cleans out all of the cloud-init cache / logs - this is mainly cleaning out networking info
|
# cleans out all of the cloud-init cache / logs - this is mainly cleaning out networking info
|
||||||
sudo cloud-init clean --logs
|
sudo cloud-init clean --logs
|
||||||
|
|
||||||
echo "Compacting drive..."
|
|
||||||
dd if=/dev/zero of=EMPTY bs=1M > /dev/null
|
|
||||||
rm -vf /root/EMPTY
|
|
||||||
fstrim -av
|
|
||||||
|
|
||||||
#cleanup shell history
|
#cleanup shell history
|
||||||
cat /dev/null > ~/.bash_history && history -c
|
cat /dev/null > ~/.bash_history && history -c
|
||||||
|
|||||||
Reference in New Issue
Block a user