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

Add command to return the variables used in a .fw file #92

Open
fhunleth opened this issue Aug 15, 2018 · 0 comments
Open

Add command to return the variables used in a .fw file #92

fhunleth opened this issue Aug 15, 2018 · 0 comments

Comments

@fhunleth
Copy link
Collaborator

People have been using variables to pass provisioning information through fwup so that programming and provisioning can be done in one step. The way this is done is to escape environment variables in fwup.conf files so that they get evaluated the the .fw is applied rather than when it's created.

There's a desire to get the list of variables referenced in a .fw file for the following reasons:

  1. See what's being provisioned without unzipping the .fw and looking at the meta.conf
  2. Getting a list of variables so that scripts can pass the variables through the sudo call to fwup without knowing the variable names. sudo resets the environment. This is for generic scripts like those used in Nerves.
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

1 participant