[arch-general] systemd + crypttab
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:
> 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?
crypttab(5) explains that "nofail" is the option you want to use:
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.
More information about the arch-general