<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>
</p>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-unicode">Package: cryptsetup-initramfs<br>
Version: 2:2.0.2-1ubuntu1
<br>
<br>
Dear Maintainers, i propose you my fix to this problem.
<br>
<br>
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.<br>
<br>
I found this article:
<a class="moz-txt-link-freetext" href="https://superuser.com/questions/1062979/preserve-numlock-state-during-cryptdisk-boot-password-prompt-in-plymouth">https://superuser.com/questions/1062979/preserve-numlock-state-during-cryptdisk-boot-password-prompt-in-plymouth</a><br>
<br>
So, i apply modifications like this:<br>
in /usr/share/initramfs-tools/hooks/cryptopensc:<br>
65a66<br>
> copy_exec /usr/bin/setleds<br>
<br>
in /usr/share/initramfs-tools/scripts/local-top/cryptopensc:<br>
36a37,45<br>
> <br>
> if [ ! -x /usr/bin/setleds ] ; then<br>
> exit 0<br>
> fi<br>
> <br>
> INITTY=/dev/tty[1-8]<br>
> for tty in $INITTY ; do<br>
> setleds -D +num < $tty<br>
> done<br>
<br>
I apply modifications:
<br>
update-initramfs -u -k all
<br>
<br>
So i can use my numlock in boot password prompt for my smartcard.<br>
<br>
Cheers,<br>
</div>
</body>
</html>