summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-08-07 21:37:34 +0200
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-08-07 21:37:34 +0200
commit2311382af0eb15a04e71137fe102acdc3448c84b (patch)
tree47e8887d75858c0cef583b6e907ce727b34132c1
parent66a78afe5bdd04b7247239e3cd0772ef45a08f24 (diff)
downloadarch-boxes32-2311382af0eb15a04e71137fe102acdc3448c84b.tar.xz
added check to make write_zeroes optional
-rw-r--r--vagrant.json10
1 files changed, 9 insertions, 1 deletions
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": [