Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
packer: pick up extra command-line flags from flags/<pkg>/flags.txt
The file format is one flag per line (\n-separated). Preparation example: mkdir -p flags/github.com/gokrazy/timestamps echo '--ohai' > flags/github.com/gokrazy/timestamps/flags.txt Packer example: gokr-packer -update=yes -hostname=gokrazy \ github.com/gokrazy/breakglass \ github.com/gokrazy/timestamps \ github.com/gokrazy/serial-busybox Resulting stderr: 1970/01/01 01:00:09 gokrazy: attempt 0, starting [/user/timestamps --ohai] You can check the effect locally by adding -overwrite_init=/tmp/init.go to your gokr-packer invocation and examining /tmp/init.go afterwards. related to gokrazy/gokrazy#65
- Loading branch information
1 parent
f17e3ee
commit fdd90fc
Showing
2 changed files
with
91 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters