FS#57135 - [cryptsetup] add timeout and shutdown option to the encrypt hook
Attached to Project:
Arch Linux
Opened by slowbro (slowbro) - Wednesday, 17 January 2018, 23:43 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:23 GMT
Opened by slowbro (slowbro) - Wednesday, 17 January 2018, 23:43 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:23 GMT
|
Details
After recently making a custom patch for the encrypt hook, I
thought I would submit it here as an an official request.
I needed a way to have the encrypt hook timeout and shut down my machine. I added a new option, 'shutdown-after', that adds the '--timeout' option to the cryptsetup call, and executes a shutdown via sysrq-trigger after the timeout. This would be added, along with any other options, to the 'cryptdevice=' kernel option, like so: cryptdevice=UUID=xxx-xxx-xxx:cryptlvm:allow-discards,shutdown-after=300 That would cause the `cryptsetup open` call to time out after 5 minutes, and have the system be halted. Up to you if you want to include this option, but I thought I would throw it out there! -Katelyn |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:23 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/cryptsetup/issues/9
Saturday, 25 November 2023, 20:23 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/cryptsetup/issues/9
Comment by
Buggy McBugFace (bugbot) - Tuesday,
08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2
years. Please reply if you still experience this bug otherwise
this issue will be closed after 1 month.