-
Notifications
You must be signed in to change notification settings - Fork 43
/
Vagrantfile
27 lines (19 loc) · 885 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.synced_folder "data", "/data"
end
$script = <<SCRIPT
cd /data
apt-get update
apt-get install -y grub-efi-amd64
grub-mkimage -d /usr/lib/grub/x86_64-efi/ -o BOOTX64.efi -O x86_64-efi --prefix /efi/boot part_gpt part_msdos lvm fat ext2 chain boot configfile normal minicmd linux reboot halt search gfxterm gfxmenu efi_gop efi_uga video loadbios gzio video_bochs video_cirrus echo true loadenv
SCRIPT
Vagrant.configure("2") do |config|
config.vm.provision :shell, :inline => $script
end