[pkg-cryptsetup-devel] Bug#903641: Preserve numlock state during cryptdisk boot password prompt in plymouth
Pascal Vibet - ADACIS
pvibet at gmail.com
Thu Jul 12 14:02:20 BST 2018
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20180712/4987791d/attachment.html>
More information about the pkg-cryptsetup-devel
mailing list