Check for whether lxc is installed using lxc-create
Closes GH-214 and GH-211
This commit is contained in:
parent
13e7ffedea
commit
005140099c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue