Bug 60821 - cryptsetup-generator doesn't support file backed volumes.
Summary: cryptsetup-generator doesn't support file backed volumes.
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 23:54 UTC by Thomas Weißschuh
Modified: 2013-04-01 04:47 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.