From 6df5fbfb62a910ece5954bb5b8e1b57f329e937a Mon Sep 17 00:00:00 2001 From: Karol Date: Thu, 29 Aug 2019 18:52:21 +0200 Subject: [PATCH] scripts/vagrant: add arch-linux option Add Arch Linux option to our Vagrant scripts. We will probably need this for nightly tests against latest versions of software we depend on. Signed-off-by: Karol Latecki Change-Id: I2dd1d69cbb286625343fd5e70ace0d8da1218825 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466832 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Ben Walker Reviewed-by: Seth Howell Reviewed-by: Paul Luse Reviewed-by: Maciej Wawryk Reviewed-by: Maciej Szwed --- scripts/vagrant/Vagrantfile | 3 +++ scripts/vagrant/create_vbox.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/vagrant/Vagrantfile b/scripts/vagrant/Vagrantfile index 6904e19d3..030abe544 100644 --- a/scripts/vagrant/Vagrantfile +++ b/scripts/vagrant/Vagrantfile @@ -50,6 +50,9 @@ Vagrant.configure(2) do |config| config.vm.provision "shell", inline: "sudo chown root:wheel /usr/local/etc/pkg.conf" config.vm.provision "shell", inline: "sudo chmod 644 /usr/local/etc/pkg.conf" end + when "arch-linux" + #See: https://app.vagrantup.com/generic/boxes/arch + config.vm.box = "generic/arch" else "Invalid argument #{distro}" abort("Invalid argument!") diff --git a/scripts/vagrant/create_vbox.sh b/scripts/vagrant/create_vbox.sh index afd3b2937..02e42e1c2 100755 --- a/scripts/vagrant/create_vbox.sh +++ b/scripts/vagrant/create_vbox.sh @@ -137,6 +137,9 @@ case "$SPDK_VAGRANT_DISTRO" in freebsd11) export SPDK_VAGRANT_DISTRO ;; + arch-linux) + export SPDK_VAGRANT_DISTRO + ;; *) echo " Invalid argument \"${SPDK_VAGRANT_DISTRO}\"" echo " Try: \"$0 -h\"" >&2