From d02a9d575fe220d104ef012cd996700eebd0ab6f Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 21 Sep 2013 01:28:01 -0300 Subject: [PATCH] Ensures lxc templates are executable prior to running `lxc-create` Closes #128 --- CHANGELOG.md | 6 ++++++ Gemfile.lock | 2 +- lib/vagrant-lxc/driver.rb | 1 + lib/vagrant-lxc/version.rb | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 569c2b2..3fdbf05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [0.6.1](https://github.com/fgrehm/vagrant-lxc/compare/v0.6.0...master) (unreleased) + + IMPROVEMENTS: + + - Make sure lxc templates are executable prior to `lxc-create` [#128](https://github.com/fgrehm/vagrant-lxc/issues/128) + ## [0.6.0](https://github.com/fgrehm/vagrant-lxc/compare/v0.5.0...v0.6.0) (Sep 12, 2013) IMPROVEMENTS: diff --git a/Gemfile.lock b/Gemfile.lock index fe4aee3..99de709 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -25,7 +25,7 @@ GIT PATH remote: . specs: - vagrant-lxc (0.6.0) + vagrant-lxc (0.6.1.dev) GEM remote: https://rubygems.org/ diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index aa1133b..7fc4d0c 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -153,6 +153,7 @@ module Vagrant @logger.debug 'Copying LXC template into place' @sudo_wrapper.run('cp', path, tmp_template_path) + @sudo_wrapper.run('chmod', '+x', tmp_template_path) yield template_name ensure diff --git a/lib/vagrant-lxc/version.rb b/lib/vagrant-lxc/version.rb index a370c7f..7307a16 100644 --- a/lib/vagrant-lxc/version.rb +++ b/lib/vagrant-lxc/version.rb @@ -1,5 +1,5 @@ module Vagrant module LXC - VERSION = "0.6.0" + VERSION = "0.6.1.dev" end end