Package: cryptsetup-initramfs
Version: 2:2.0.2-1ubuntu1
Dear Maintainers, i propose you my fix to this problem.
I'm using smartcard to decrypt luks disk, i'm using decrypt_opensc
script in /etc/crypttab. I want to preserve numlock state during
cryptdisk boot password prompt.
I found this article:
https://superuser.com/questions/1062979/preserve-numlock-state-during-cryptdisk-boot-password-prompt-in-plymouth
So, i apply modifications like this:
in /usr/share/initramfs-tools/hooks/cryptopensc:
65a66
> copy_exec /usr/bin/setleds
in /usr/share/initramfs-tools/scripts/local-top/cryptopensc:
36a37,45
>
> if [ ! -x /usr/bin/setleds ] ; then
> exit 0
> fi
>
> INITTY=/dev/tty[1-8]
> for tty in $INITTY ; do
> setleds -D +num < $tty
> done
I apply modifications:
update-initramfs -u -k all
So i can use my numlock in boot password prompt for my smartcard.
Cheers,