Skip to content

Commit

Permalink
Merge pull request #1861 from tlaurion/oem-factory_reset_hide-detach-…
Browse files Browse the repository at this point in the history
…sign-user-pin

bugfix: oem-factory-reset: debug mode; hide passphrase output on screen/debug log on gpg --detach-sign of /boot hash digest
  • Loading branch information
tlaurion authored Nov 25, 2024
2 parents 45696a4 + 5501cd0 commit 4f14058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initrd/bin/oem-factory-reset
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ generate_checksums() {
fi

DEBUG "Detach-signing boot files under kexec.sig: ${param_files}"
if sha256sum $param_files 2>/dev/null | DO_WITH_DEBUG gpg \
if sha256sum $param_files 2>/dev/null | DO_WITH_DEBUG --mask-position 4 gpg \
--pinentry-mode loopback \
--passphrase "${USER_PIN}" \
--digest-algo SHA256 \
Expand Down

0 comments on commit 4f14058

Please sign in to comment.