You are not logged in.

#1 2021-04-04 21:16:43

luthepa1
Member
Registered: 2021-03-15
Posts: 2

LUKS password prompt at boot - Timeout to shutdown?

Hi,

Is there an option that can be set, maybe in the crypttab file, that if your PC is sitting at the password prompt screen for LUKS decryption to continue booting, that would turn the PC off after say 3mins of no user input (idle)?

I ask in regards to my Dell XPS 13 (7390) laptop which has the partitiions ,ESP, Boot, Root, with Root being luks encrypted.  If its switched on for some reason being a dock or in my backpack for some reason, it will sit at the password prompt screen getting really hot and flattening the battery.  Would be great if I could make it shutdown the laptop after say 3mins no input.  I have tried adding the timeout option in crypttab but I'm sure thats for something else and not what I am after from wha tI have read on the man page for crypttab.  The only other thign I have been able to find on the internet was someone mentioning they made and added a script to get hooked from initramfs.  I'm just not 100% sure how to implement such a script.  https://bbs.archlinux.org/viewtopic.php?id=234938

Although now that I think of it, I should search custom script hooking in initramfs from the wiki's but if anyone is able to assist it would be very much appreciated.

Paul

Offline

#2 2021-09-19 13:36:51

Cybso
Member
Registered: 2021-09-19
Posts: 1

Re: LUKS password prompt at boot - Timeout to shutdown?

Hello Paul,

I had the same system yesterday and wrote a patch to Debian's cryptsetup-initramfs. Maybe you can port that to Arch?

https://bugs.debian.org/cgi-bin/bugrepo … bug=994682

Best regards,

Roland

Offline

#3 2021-12-16 20:56:46

twNwsHT0
Member
Registered: 2014-08-26
Posts: 10

Re: LUKS password prompt at boot - Timeout to shutdown?

Did you managed to implement mentioned timeout for archlinux?

Offline

#4 2022-05-09 20:21:54

mmskv
Member
Registered: 2022-05-09
Posts: 1

Re: LUKS password prompt at boot - Timeout to shutdown?

twNwsHT0 wrote:

Did you managed to implement mentioned timeout for archlinux?

I ported Cybso's patch and created a pacman hook that applies it on cryptsetup upgrade.
You can get them here https://github.com/mmskv/dotfiles/commi … 48dfeb97ef

Offline

Board footer

Powered by FluxBB