[pkg-cryptsetup-devel] Bug#903641: Preserve numlock state during cryptdisk boot password prompt in plymouth

Guilhem Moulin guilhem at debian.org
Thu Jul 12 14:48:20 BST 2018


Control: severity -1 minor

Hi,

On Thu, 12 Jul 2018 at 15:02:20 +0200, Pascal Vibet - ADACIS wrote:
> So, i apply modifications like this:
> in /usr/share/initramfs-tools/hooks/cryptopensc:
> […]
> in /usr/share/initramfs-tools/scripts/local-top/cryptopensc:

Why only in cryptopensc and not in cryptroot?  Also /usr/bin/setleds
comes from the ‘kbd’ package which cryptsetup-initramfs doesn't depend
on (it's only a Recommends, not a hard Depends), so `copy_exec` needs to
wrapped to check for the program's existence.

>> INITTY=/dev/tty[1-8]
>> for tty in $INITTY ; do
>>    setleds -D +num < $tty
>> done

Does that really *preserve* the numlock state?  I'm not familiar with
setleds(1), but according to the manpage it *sets* numlock and changes
the default settings.

Cheers,
-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cryptsetup-devel/attachments/20180712/e09a03f4/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list