Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Attempt to find the lxc-version command using sudo if not in default PATH (Fixes #195) #186

Merged

Conversation

vStone
Copy link
Contributor

@vStone vStone commented Nov 12, 2013

Fixes #185

... if lxc-version is not found in the efault PATH

Fixes fgrehm#195
@fgrehm
Copy link
Owner

fgrehm commented Nov 12, 2013

So this patch fixes the issue for you?

@fgrehm
Copy link
Owner

fgrehm commented Nov 12, 2013

Ideally we should make this less error prone and change it to look into known paths, but if this works for you I'm happy to merge it ;)

@vStone
Copy link
Contributor Author

vStone commented Nov 12, 2013

This works for me and seems like a reasonable solution :) most commands are (or should?) be executed using sudo or the wrapper anyhow.

@fgrehm
Copy link
Owner

fgrehm commented Nov 12, 2013

Cool, I'll try to give it a go and release a new version later on tonight :) thanks for the PR!

@fgrehm
Copy link
Owner

fgrehm commented Dec 18, 2013

@vStone This is coming in now but I'll do a small change to make things simpler and will /cc you on the commit. Thanks for the patch :-)

fgrehm added a commit that referenced this pull request Dec 18, 2013
…oot-path

Attempt to find the lxc-version command using sudo if not in default PATH (Fixes #195)
@fgrehm fgrehm merged commit 0e759e6 into fgrehm:master Dec 18, 2013
@vStone vStone deleted the bugfix/185-detect-lxc-different-root-path branch December 18, 2013 05:54
@fgrehm fgrehm removed this from the v1.0.0 milestone Mar 6, 2014
@mccrodp
Copy link

mccrodp commented May 20, 2014

Hi, I've tried to follow instructions https://github.com/ricardoamaro/drupal-lxc-vagrant-docker

sudo vagrant plugin install vagrant-lxc
Installing the 'vagrant-lxc' plugin. This can take a few minutes...
Installed the plugin 'vagrant-lxc (0.8.0)'!

sudo vagrant up --provider=lxc
The lxc package does not seem to be installed or is not accessible on the PATH.

sudo which lxc-version

  • This also outputs nothing

I am unsure in layman's terms what to do here, I have the master version from github. What should be on my path, i.e. - on Mac OS.

Thank you.

@fgrehm
Copy link
Owner

fgrehm commented May 28, 2014

I am unsure in layman's terms what to do here, I have the master version from github. What should be on my path, i.e. - on Mac OS.

@mccrodp vagrant-lxc is not supported on Mac!

@mccrodp
Copy link

mccrodp commented May 28, 2014

Ahh ok. I will use for dev/stage/prod envs and not local dev. Thank you @fgrehm.

@theodorosploumis
Copy link

I came here from a similar error on a Vagrant project and I realized I forgot to install lxc!
I am on Ubuntu 14.10.

sudo apt-get install lxc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vagrant-lxc does not correctly detect if lxc is installed
4 participants