summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-05-07 22:08:53 +0200
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-05-07 22:08:53 +0200
commitdb6d7144c7659ee919f72703e84d65c64decbb48 (patch)
treeb3bb0a5a1a72ef5fe10bc9ea48a7aa84b1cbb824
parent037d8a6503066059b50b45a9ce6a4417b7e753e6 (diff)
downloadarch-boxes32-db6d7144c7659ee919f72703e84d65c64decbb48.tar.xz
added qemu provisioning scripts
-rw-r--r--provision/qemu.sh7
-rw-r--r--vagrant.json13
2 files changed, 19 insertions, 1 deletions
diff --git a/provision/qemu.sh b/provision/qemu.sh
new file mode 100644
index 0000000..aa36e03
--- /dev/null
+++ b/provision/qemu.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+set -x
+
+sudo pacman -S --noconfirm linux-headers
+sudo pacman -S --noconfirm qemu-guest-agent
diff --git a/vagrant.json b/vagrant.json
index 406b07a..b5193e6 100644
--- a/vagrant.json
+++ b/vagrant.json
@@ -77,7 +77,18 @@
"provision/virtualbox.sh",
"provision/cleanup.sh"
],
- "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'"
+ "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
+ "only": ["virtualbox-iso"]
+ },
+ {
+ "type": "shell",
+ "scripts": [
+ "provision/postinstall.sh",
+ "provision/qemu.sh",
+ "provision/cleanup.sh"
+ ],
+ "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
+ "only": ["qemu"]
}
],
"post-processors": [