Skip to content

Commit

Permalink
Forgot to checkin shrink script changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchty committed May 17, 2015
1 parent 1741d14 commit 1ea55b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/shrink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ launchctl unload /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
sleep 5
rm -rf /private/var/vm/swap*

slash="$(df -h / | tail -n 1 | awk '{print $1}')"
echo Zeroing out free space
diskutil secureErase freespace 0 ${slash}

# VMware Fusion specific items
if [ -e .vmfusion_version ] || [[ "$PACKER_BUILDER_TYPE" == vmware* ]]; then
# Shrink the disk
Expand Down

0 comments on commit 1ea55b3

Please sign in to comment.