CLOUDSTACK-1340: During cleanup deluser vagrant, sync after zero-ing the disk

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-27 16:59:11 +05:30
parent 23be2e7ba0
commit ff32ae5305
2 changed files with 4 additions and 0 deletions

View File

@ -17,3 +17,6 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
echo "pre-up sleep 2" >> /etc/network/interfaces
# Remove the vagrant user
deluser --group --force -remove-home vagrant

View File

@ -3,5 +3,6 @@ rm -f /root/*
# Zero out the free space to save space in the final image:
dd if=/dev/zero of=/EMPTY bs=1M
sync
rm -f /EMPTY