Skip to content

Commit 2469da5

Browse files
committed
WiP key to card fails with invalid time when moving keys to smartcard
- whiptail_or_die has HEIGHT 0. This doesn't show a scrolling window here which is problematic - Adding DO_WITH_DEBUG in that specific gpg call Signed-off-by: Thierry Laurion <insurgo@riseup.net>
1 parent c91731c commit 2469da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

initrd/bin/oem-factory-reset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ keytocard_subkeys_to_smartcard() {
297297
echo "${ADMIN_PIN_DEF}" #Smartcard Admin PIN
298298
echo "key 3" #Toggle off Authentication key
299299
echo "save" #Save changes and commit to keyring
300-
} | gpg --expert --command-fd=0 --status-fd=1 --pinentry-mode=loopback --edit-key "${GPG_USER_MAIL}" \
300+
} | DO_WITH_DEBUG gpg --expert --command-fd=0 --status-fd=1 --pinentry-mode=loopback --edit-key "${GPG_USER_MAIL}" \
301301
>/tmp/gpg_card_edit_output 2>&1
302302
if [ $? -ne 0 ]; then
303303
ERROR=$(cat /tmp/gpg_card_edit_output)

0 commit comments

Comments
 (0)