mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
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:
parent
23be2e7ba0
commit
ff32ae5305
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user