Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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": [