From f49585db5163d8bc86be7c0fd46b94cb1c8ee444 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 8 Jun 2014 22:49:33 -0300 Subject: [PATCH] driver/cli: Improved lxc-attach check [GH-294] --- lib/vagrant-lxc/driver/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/driver/cli.rb b/lib/vagrant-lxc/driver/cli.rb index b9f6ee3..d378288 100644 --- a/lib/vagrant-lxc/driver/cli.rb +++ b/lib/vagrant-lxc/driver/cli.rb @@ -130,7 +130,7 @@ module Vagrant unless defined?(@supports_attach) begin @supports_attach = true - run(:attach, '--name', @name, 'true') + run(:attach, '--name', @name, '--', '/bin/true') rescue LXC::Errors::ExecuteError @supports_attach = false end