Skip to content

Commit 4f14058

Browse files
authored
Merge pull request #1861 from tlaurion/oem-factory_reset_hide-detach-sign-user-pin
bugfix: oem-factory-reset: debug mode; hide passphrase output on screen/debug log on gpg --detach-sign of /boot hash digest
2 parents 45696a4 + 5501cd0 commit 4f14058

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

initrd/bin/oem-factory-reset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ generate_checksums() {
680680
fi
681681

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

0 commit comments

Comments
 (0)