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

Verify that the downloaded busybox binary runs #1827

Merged
merged 2 commits into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions golden-state-tree/download/busybox.sls
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/usr/bin/busybox:
file.managed:
{%- if grains['osarch'] == 'arm64' %}
- source: https://github.com/saltstack/salt-jenkins/files/8031454/busybox.zip
- source_hash: sha256=d270442b2fff1c8ebbd076afaf2f6739abc5790526acfafd8fcdba3eab80ed73
{%- else %}
{%- if grains['osarch'] == 'aarch64' %}
- source: https://github.com/saltstack/salt-jenkins/files/12686271/busybox.arch64.zip
- source_hash: f6c93120cec5f4a6414ae7e7725ef20dd51f07b93f5f69961c1ce2c3ab13b446
{%- else %}
- source: https://github.com/saltstack/salt-jenkins/files/8031454/busybox.zip
- source_hash: sha256=d270442b2fff1c8ebbd076afaf2f6739abc5790526acfafd8fcdba3eab80ed73
{%- endif %}
- mode: 0755


run-busybox:
cmd.run:
- name: /usr/bin/busybox pwd && exit 0 || exit 1
- require:
- /usr/bin/busybox
2 changes: 1 addition & 1 deletion os-images/AWS/photon/photon-3-arm64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ build {
"tdnf update -y",
"tdnf install -y linux"
]
inline_shebang = "/bin/sh -ex"
inline_shebang = "/bin/sh -ex"
}

provisioner "shell" {
Expand Down