Skip to content

Conversation

@Bandie
Copy link

@Bandie Bandie commented Nov 2, 2025

Hi,

I needed a fallback to encryptssh if no YubiKey is present in 1FA mode, so I added YKFDE_SKIP_PASSWORD_PROMPT="1" as config option.

It skips ykfde's password prompt, just waiting for the YubiKey and none is present, it will drop out, executing the next hook.

This shall be a workaround until #57 is a thing.

src/hooks/ykfde Outdated
[ -z "$YKFDE_LUKS_DEV" ] && YKFDE_LUKS_DEV="/dev/disk/by-uuid/$YKFDE_DISK_UUID"
[ "$YKFDE_CRYPTSETUP_TRIALS" -lt 1 ] && YKFDE_CRYPTSETUP_TRIALS="5"
[ "$YKFDE_CHALLENGE_SLOT" -lt 1 ] || [ "$YKFDE_CHALLENGE_SLOT" -gt 2 ] && YKFDE_CHALLENGE_SLOT="2"
[ "$YKFDE_SKIP_PASSWORD_PROMPT" -ne 1 ] && YKFDE_SKIP_PASSWORD_PROMPT="0"
Copy link
Collaborator

@Vincent43 Vincent43 Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we accept any non-empty value for other true/false options so strictly expecting 1 would be rather inconsequential.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hint!

@Bandie Bandie changed the title Use ykfde with encryptssh Use ykfde with encryptssh, removing 11-dm-initramfs.rules as it doesn't exist anymore; fixes #115 Nov 16, 2025
@Bandie Bandie changed the title Use ykfde with encryptssh, removing 11-dm-initramfs.rules as it doesn't exist anymore; fixes #115 Use ykfde with encryptssh Nov 16, 2025
@agherzan
Copy link
Owner

Thanks for this. Could you please cleanup the git history?

@Bandie
Copy link
Author

Bandie commented Nov 19, 2025

Thanks for this. Could you please cleanup the git history?

Thanks!
Done! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants