Summary: | RFE: add device-timeout option for /etc/crypttab | ||
---|---|---|---|
Product: | systemd | Reporter: | seschwar |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | steffen.weber |
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
seschwar
2012-08-29 13:26:02 UTC
It looks like "nofail" applies to cryptsetup.target. So while your device failed, cryptsetup.target succeeded without it. It seems like what you want to do is reduce the timeout for dev/disk/by/uuid/e3c24abf-143a-4d84-92b1-113f02a49a16.device On 2012-09-26 at 20:57 +0000 Matthew Monaco <dgbaley27@0x01b.net> wrote: > It looks like "nofail" applies to cryptsetup.target. So while > your device failed, cryptsetup.target succeeded without it. I had missed that. With the nofail option the status of cryptsetup.target is "active" and without it it is "inactive (dead)". However in both cases the boot process is the same. systemd waits until the device times out and then continues booting normally. > It seems like what you want to do is reduce the timeout for > dev/disk/by/uuid/e3c24abf-143a-4d84-92b1-113f02a49a16.device How do I do that? The timeout option described in man:crypttab(5) is for the timeout of the password prompt and not of the device. Is there something like fstab's x-systemd.device-timeout for crypttab? Moreover I think that crypttab's manual page suggests that the nofail already implies an immediate timeout: > The system will not wait for the device to show up (...) As I see it this is a mismatch between the documentation and the implementation and probably the source of my confusion. After having used systemd for a while I now have a better grasp of this issue. In the meantime systemd has also improved in this respect. For example the timeout for a non-existing device seems to be shorter and there is more and more accurate status output. Generally the nofail option causes the generated units to be added to systemd-cryptsetup.target.wants instead of systemd-cryptsetup.target.requires. It doesn't change any timeouts. If the device is not present the job times out after the default 1.5 minutes. This is all just fine. But a device-timeout option for crypttab analogous to fstab's x-systemd.device-timeout is clearly missing in order to decrease the timeout for removable storage devices. Thanks, Zbigniew. x-systemd.device-timeout isn't documented in crypttab's manual page, yet. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.