driver/cli: Improved lxc-attach check [GH-294]

This commit is contained in:
Fabio Rehm 2014-06-08 22:49:33 -03:00
parent 3fe6cc094e
commit f49585db51

View file

@ -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