Check for whether lxc is installed using lxc-create

Closes GH-214 and GH-211
This commit is contained in:
Fabio Rehm 2014-02-12 01:41:24 -02:00
parent 13e7ffedea
commit 005140099c

View file

@ -27,7 +27,7 @@ module Vagrant
def ensure_lxc_installed!
begin
sudo_wrapper.run("which", "lxc-version")
sudo_wrapper.run("which", "lxc-create")
rescue Vagrant::LXC::Errors::ExecuteError
raise Errors::LxcNotInstalled
end