[pkg-cryptsetup-devel] Bug#994682: cryptsetup-initramfs: Poweroff timeout for cryptroot

Roland Tapken debian at tmp.dau-sicher.de
Wed Oct 13 10:26:52 BST 2021


Hello Chris,

> a) How does a laptop turn on unintentionally? ;-)

It happens from time to time on my Dell Latitude 9420. I've shut the system 
down at evening and later (or the next morning) I saw that the display was on 
and waiting for the passphrase. It even happened twice when it was stored in 
my laptop case.  It seems that this problem is sporadically seen on Dell 
laptops, maybe a hardware fault. But it could also happen on any other laptop 
if you accidentally selected reboot instead of poweroff and closed the lid, or 
if the laptop has a power-on-lid feature.

> Consider that such a system would constantly be powered on
> automatically (Wake-On-LAN or similar features of servers)... in such a
> case, if cryptroot keyscript wouldn't finish in due time (e.g. because
> no one enters the passphrase or so), it might end up in a
> powerup/powerdown cycle... which is probably of no good for the
> hardware.

Well, then don't enable it for servers? The patch doesn't add a timeout by 
default, only if defined in crypttab.

Best Regards,

Roland



More information about the pkg-cryptsetup-devel mailing list