From 005140099c07d75dd29d5c25662d4f9bbc9084da Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 12 Feb 2014 01:41:24 -0200 Subject: [PATCH] Check for whether lxc is installed using `lxc-create` Closes GH-214 and GH-211 --- lib/vagrant-lxc/provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/provider.rb b/lib/vagrant-lxc/provider.rb index abde513..0709b10 100644 --- a/lib/vagrant-lxc/provider.rb +++ b/lib/vagrant-lxc/provider.rb @@ -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