From 2311382af0eb15a04e71137fe102acdc3448c84b Mon Sep 17 00:00:00 2001 From: Christian Rebischke Date: Mon, 7 Aug 2017 21:37:34 +0200 Subject: added check to make write_zeroes optional --- vagrant.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vagrant.json b/vagrant.json index a52f144..8b0e042 100644 --- a/vagrant.json +++ b/vagrant.json @@ -7,7 +7,8 @@ "memory": "1024", "cpus": "2", "headless": "true", - "atlas_token": "PLACEHOLDER" + "atlas_token": "PLACEHOLDER", + "write_zeroes": "" }, "builders": [ { @@ -127,6 +128,13 @@ ], "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", "only": ["vmware-iso"] + }, + { + "type": "shell", + "scripts": [ + "provision/write_zeroes.sh" + ], + "execute_command": "if [ ! -z \"{{user `write_zeroes`}}\" ]; echo 'vagrant'|sudo -S sh '{{.Path}}'; fi" } ], "post-processors": [ -- cgit v1.2.3-70-g09d2