self-flash-image/Vagrantfile

31 lines
753 B
Plaintext
Raw Normal View History

2020-10-24 13:06:22 +02:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
#
# This script can test the internetcube image patching just do vagrant up
$script = <<SCRIPT
export DEBIAN_FRONTEND=noninteractive
source /vagrant/yunocube.sh
mkdir -p /tmp/overlay
ln -s /vagrant /tmp/overlay/internetcube
InstallInternetCubeServices
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.provider :libvirt do |libvirt|
libvirt.memory = 2048
end
# config.vm.provision "shell" do |s|
# s.inline = $script
# end
end