Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164795 - sys-fs/cryptsetup-luks - set timeout in dm-crypt-start
Summary: sys-fs/cryptsetup-luks - set timeout in dm-crypt-start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benjamin Smee (strerror) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 08:41 UTC by Thomas Bettler
Modified: 2007-10-02 15:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dm-crypt.patch (dm-crypt.patch,1.17 KB, patch)
2007-02-01 08:42 UTC, Thomas Bettler
Details | Diff
dm-crypt.patch (cryptsetup-luks.patch,1.96 KB, patch)
2007-06-06 22:06 UTC, Thomas Bettler
Details | Diff
dm-crypt.patch (cryptsetup-luks.patch,2.19 KB, patch)
2007-06-08 08:15 UTC, Thomas Bettler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2007-02-01 08:41:33 UTC
/lib/rcscripts/addons/dm-crypt-start.sh should have a default timeout value
if something unexpected happens. If your machine is unattended it shouldn't wait forever, but try to continue without mapping your encrypted devices.

As I use an external device as key storage formatted with vfat, I ran into case conversion problems without having a clue, why my box is hanging now, since I have no monitor attached to it. So I couldn't even remotely get a clue of all these troubles.

Of course the timeout should be long, so that it only applies to unattended boxes.
Comment 1 Thomas Bettler 2007-02-01 08:42:07 UTC
Created attachment 108823 [details, diff]
dm-crypt.patch

My proposition
Comment 2 Christian Ludwig 2007-05-28 17:40:06 UTC
I am perfectly fine with the current state. Since I would need to plug in my USB thumb drive within your proposed 60 seconds, I would be forced to watch the boot process.

Perhaps we couĺd make a config option out of this?
Comment 3 Thomas Bettler 2007-06-06 21:06:27 UTC
I agree totally. I'd prefer to introduce a bootparam, 
as this will allow us to also handle bug 162962 with the same param.
As this is right before mounting root, there is no easy way to configure it in a file,
what makes me opt for the bootparam.

We could introduce
key_timeout=[secs to wait]

and use this value each time we don't detect our device.
Value of zero will mean wait forever.
Comment 4 Thomas Bettler 2007-06-06 22:06:07 UTC
Created attachment 121362 [details, diff]
dm-crypt.patch

Voila, here a first example...
Comment 5 Thomas Bettler 2007-06-08 08:15:20 UTC
Created attachment 121473 [details, diff]
dm-crypt.patch

Sorry, I just forgot to merge that length function... here it is and works fine on my 2 boxes.
Comment 6 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2007-10-02 15:47:28 UTC
thanks for patch. Some mods and in cvs.