cri-o/vendor/github.com/containers/storage/vagrant/runinvm.sh
Daniel J Walsh 549d734da9 Vendor in latest code.
Add support for vendoring in containers/storage and ran
dep ensure

Need to get default storage for containers to include and default to
overlay2.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-03-28 17:01:08 -04:00

28 lines
877 B
Bash
Executable file

#!/bin/bash
set -e
export PKG='github.com/containers/storage'
export VAGRANT_MACHINES="fedora debian"
if test -z "$VAGRANT_PROVIDER" ; then
if lsmod | grep -q '^vboxdrv ' ; then
VAGRANT_PROVIDER=virtualbox
elif lsmod | grep -q '^kvm ' ; then
VAGRANT_PROVIDER=libvirt
fi
fi
export VAGRANT_PROVIDER=${VAGRANT_PROVIDER:-libvirt}
export VAGRANT_PROVIDER=${VAGRANT_PROVIDER:-virtualbox}
if ${IN_VAGRANT_MACHINE:-false} ; then
unset AUTO_GOPATH
export GOPATH=/go
export PATH=${GOPATH}/bin:/go/src/${PKG}/vendor/src/github.com/golang/lint/golint:${PATH}
sudo modprobe aufs || true
sudo modprobe zfs || true
"$@"
else
vagrant up --provider ${VAGRANT_PROVIDER}
for machine in ${VAGRANT_MACHINES} ; do
vagrant reload ${machine}
vagrant ssh ${machine} -c "cd /go/src/${PKG}; IN_VAGRANT_MACHINE=true sudo -E $0 $*"
vagrant ssh ${machine} -c "sudo poweroff &"
done
fi