diff --git a/boxes/quantal-64/metadata.json b/boxes/quantal-64/metadata.json new file mode 100644 index 0000000..7ac54e1 --- /dev/null +++ b/boxes/quantal-64/metadata.json @@ -0,0 +1,9 @@ +{ + "provider": "lxc", + "vagrant-lxc-version": "0.0.1", + + "template-opts": { + "--arch": "x86_64", + "--release": "quantal" + } +} diff --git a/tasks/boxes.rake b/tasks/boxes.rake index ab30c42..94d6cc7 100644 --- a/tasks/boxes.rake +++ b/tasks/boxes.rake @@ -18,5 +18,20 @@ namespace :boxes do sh 'rm -f output/ubuntu-cloud.box' sh 'cd boxes/ubuntu-cloud && tar -czf ../output/ubuntu-cloud.box ./*' end + + desc 'Build Ubuntu Quantal x64 Vagrant LXC box' + task 'quantal-64' do + unless File.exists?('/var/cache/lxc/quantal/rootfs-amd64') + puts "Right now you need to run `lxc-create` with the right arguments to build debootstrap's cache " + + "prior to building the box.\n" + + "Please contact me at the mail you'll find at https://github.com/fgrehm/vagrant-lxc/issues\n" + + "if you want to find out how to get this going." + exit 1 + end + + sh 'mkdir -p boxes/output' + sh 'rm -f output/lxc-quantal-64.box' + sh 'cd boxes/quantal-64 && tar -czf ../output/lxc-quantal-64.box ./*' + end end end