Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packer is called packer-io on certain platforms #3

Closed
obilodeau opened this issue Jul 13, 2016 · 1 comment
Closed

packer is called packer-io on certain platforms #3

obilodeau opened this issue Jul 13, 2016 · 1 comment

Comments

@obilodeau
Copy link
Member

@@ -192,7 +192,7 @@ def run_packer(packer_config):
     print("Starting packer to generate the VM")
     print("----------------------------------")

-    cmd = ['packer-io', 'build', '-var-file=config.json', packer_config]
+    cmd = ['packer', 'build', '-var-file=config.json', packer_config]
     ret = run_foreground(cmd)

     print("----------------------------------")

Breaks arch linux support.

Regression introduced in 13b2e4f

obilodeau added a commit that referenced this issue Jul 13, 2016
@malwarenights
Copy link
Contributor

malwarenights commented May 8, 2017

Hello,
the patch will not work on Fedora/RedHat/Centos and possibly others, because it will by default find always the wrong binary from the colliding cracklib package.

I would recommend to search first for the more specific packer-io and then fallback to packer - this way it would be easy to install the packer.io as packer-io on RedHat platforms for example by:

# installing pre-compiled packer.io
 wget https://releases.hashicorp.com/packer/1.0.0/packer_1.0.0_linux_amd64.zip
 unzip packer_1.0.0_linux_amd64.zip
 mkdir ~/bin
 # name "packer" collides with tool from cracklib
 mv packer ~/bin/packer-io
 chmod +x ~/bin/packer-io
 export PATH=~/bin:$PATH

Please could you consider accepting the related pull request - #53

Thank you
Michal Ambroz

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

No branches or pull requests

2 participants