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:

So, i apply modifications like this:
in /usr/share/initramfs-tools/hooks/cryptopensc:
> copy_exec /usr/bin/setleds

in /usr/share/initramfs-tools/scripts/local-top/cryptopensc:
> 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.


Reply via email to