[systemd-bugs] [Bug 54210] New: nofail option in /etc/crypttab has no effect

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 29 06:26:02 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54210

             Bug #: 54210
           Summary: nofail option in /etc/crypttab has no effect
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: seschwar at googlemail.com
         QAContact: systemd-bugs at lists.freedesktop.org


I have an external USB drive with an encrypted LUKS partition, which should be
unlocked at boot if attached.  If it is not attached systemd should just ignore
the missing device, not throw any errors, and continue booting without waiting
for the device.

This seems to be a usecase for the nofail crypttab option, as it is described
in the manual page:

> nofail
>     The system will not wait for the device to show up and be unlocked at boot, and not fail the boot if it doesn't show up.

Thus the relevant line in /etc/crypttab looks like this:

> onetouch3 UUID=e3c24abf-143a-4d84-92b1-113f02a49a16 /root/luks/onetouch3 nofail

For testing purposes the unlocked partition was not mounted in fstab nor by a
unit.  But still, using the option does not have the desired effect.  systemd
waits for the device until it times out, as indicated by two entries in
journalctl -b:

> Aug 29 14:57:10 pineapple systemd[1]: Job dev-disk-by\x2duuid-e3c24abf\x2d143a\x2d4d84\x2d92b1\x2d113f02a49a16.device/start timed out.
> Aug 29 14:57:10 pineapple systemd[1]: Job dev-mapper-onetouch3.device/start failed with result 'dependency'.
> Aug 29 14:57:10 pineapple systemd[1]: Job systemd-cryptsetup at onetouch3.service/start failed with result 'dependency'.
> Aug 29 14:57:10 pineapple systemd[1]: Job dev-disk-by\x2duuid-e3c24abf\x2d143a\x2d4d84\x2d92b1\x2d113f02a49a16.device/start failed with result 'timeout'.

> Aug 29 14:58:44 pineapple systemd[1]: Job dev-disk-by\x2duuid-e3c24abf\x2d143a\x2d4d84\x2d92b1\x2d113f02a49a16.device/start timed out.
> Aug 29 14:58:44 pineapple systemd[1]: Job dev-mapper-onetouch3.device/start failed with result 'dependency'.
> Aug 29 14:58:44 pineapple systemd[1]: Job systemd-cryptsetup at onetouch3.service/start failed with result 'dependency'.
> Aug 29 14:58:44 pineapple systemd[1]: Job dev-disk-by\x2duuid-e3c24abf\x2d143a\x2d4d84\x2d92b1\x2d113f02a49a16.device/start failed with result 'timeout'.

I am using Arch Linux and the following packages and their versions might be
relevant:

linux 3.5.3-1
systemd 189-3
cryptsetup 1.5.0-2

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list