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
This commit is contained in:
Thierry Laurion 2024-11-25 11:02:30 -05:00 committed by GitHub
commit 4f1405853f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 \