Bug 60821

Summary: cryptsetup-generator doesn't support file backed volumes.
Product: systemd Reporter: Thomas Weißschuh <thomas>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: minor    
Priority: medium CC: seschwar, thomas
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Thomas Weißschuh 2013-02-13 23:54:08 UTC
cryptsetup-generator always generates units with "After=" (and "BindsTo=") dependencies with the pattern "<backendfile>.device".
Those will never be satisfied for file backed volumes, which are therefore bound to fail.

Versions: 197, 61cc634

Steps to reproduce:
Create file backed cryptovolume in /etc/crypttab

swap /swapfile /dev/urandom swap

Reboot

Units for /dev/mapper/swap.device and swap.swap time out while waiting for /swapfile.device
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-04-01 04:45:36 UTC
Fix commited in https://bugs.freedesktop.org/show_bug.cgi?id=60821. Thanks.
Comment 2 Zbigniew Jedrzejewski-Szmek 2013-04-01 04:47:54 UTC
Or rather http://cgit.freedesktop.org/systemd/systemd/commit/?id=9ece938a.

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.