Skip to content

Commit

Permalink
imghelper: remove full path from .vmlinuz.hmac
Browse files Browse the repository at this point in the history
When hmac generation moved to `imghelper`, the `vmlinuz` variable went
from the basename to the full-path. This makes sure that the full-path
doesn't make it into the final artifact.

Signed-off-by: Patrick J.P. Culp <[email protected]>
  • Loading branch information
jpculp committed Jul 26, 2024
1 parent 0e3b651 commit ac1e2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twoliter/embedded/imghelper
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ generate_hmac() {
local vmlinuz
vmlinuz="${1:?}"
openssl sha512 -hmac FIPS-FTW-RHT2009 -hex "${vmlinuz}" |
awk -v vmlinuz="${vmlinuz}" '{ print $2 " " vmlinuz }' \
awk '{ print $2 " vmlinuz" }' \
>"${vmlinuz%/*}/.${vmlinuz##*/}.hmac"
}

Expand Down

0 comments on commit ac1e2c1

Please sign in to comment.