systemd and dmcrypt/luks question

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Mar 23 03:15:12 UTC 2015


I vaguely recall that zfsonlinux did some very strange things. How
do the units you are using look?

On Sat, Mar 21, 2015 at 12:04:57AM -0600, Eric Smith wrote:
> I'm using a non-Fedora filesystem (zfsonlinux) which provides
> appropriate services and a target for systemd. The services state:
> 
>     Requires=systemd-udev-settle.service
>     After=systemd-udev-settle.service
> 
> This works fine for basic usage, but if trying to use zfs over
> dmcrypt/LUKS, the mount service apparently runs before the LUKS
> volumes are opened (based on /etc/crypttab). Also it appears that the
> LUKS volumes are closed before the zfs file systems are unmounted at
> shutdown.
>
>
> I tried adding:
> 
>     Wants=cryptsetup.target
>     After=cryptsetup.target
This should work, although it's hard to say without looking at
the units.

Zbyszek


More information about the devel mailing list