[arch-general] systemd + crypttab

Dave Reisner d at falconindy.com
Thu Nov 1 14:03:29 EDT 2012


On Thu, Nov 01, 2012 at 03:42:42PM -0200, André Vitor de Lima Matos wrote:
> Hi.
> I've a system where there's a harddisk encrypted with luks and a lvm pv
> over it, used for backup. This disk is never removed or inserted while
> system is online, but not in every boot up it's present.
> Setting this volume in crypttab, when disk is absent, cryptsetup service
> hangs for several seconds, before timing out and allowing systemd to
> complete boot. There's any way of avoiding this, may be putting it to
> background, or something like this?
> Thanks,
> 

crypttab(5) explains that "nofail" is the option you want to use:

  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.

You'll need this in /etc/fstab as well.

d


More information about the arch-general mailing list