Skip to content
Permalink
Browse files

DO NOT fill empty space on VM

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 6, 2019
1 parent 03e7236 commit babc6db82e0d82404ab5175d40d806f5c5df8748
Showing with 12 additions and 11 deletions.
  1. +12 −11 nems-cleanup.sh
@@ -287,17 +287,18 @@ nameserver 2001:4860:4860::8844

sync

# Write zeros to unused blocks before halting to create the img
echo "Filling empty space with zeros..."
dd if=/dev/zero bs=1M of=/root/.null && sync
while [ -f /root/.null ]
do
sync
rm -f /root/.null
sync
sleep 5
done

if (( $platform != 20 )); then
# Write zeros to unused blocks before halting to create the img
echo "Filling empty space with zeros..."
dd if=/dev/zero bs=1M of=/root/.null && sync
while [ -f /root/.null ]
do
sync
rm -f /root/.null
sync
sleep 5
done
fi

if [[ $1 == "halt" ]]; then echo "Halting..."; halt; exit; fi;

0 comments on commit babc6db

Please sign in to comment.
You can’t perform that action at this time.