From: Ivan Shapovalov Date: Wed, 30 Aug 2017 16:49:07 +0000 (+0300) Subject: cryptsetup-generator: do not bind to the decrypted device unit (#6538) X-Git-Tag: v235~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ea4526a3a3b41eced29b8d742498cc36750424;p=thirdparty%2Fsystemd.git cryptsetup-generator: do not bind to the decrypted device unit (#6538) This breaks things when the decrypted device is not immediately `SYSTEMD_READY=1` (e. g. when a multi-device btrfs system is placed on multiple cryptsetup devices). Fixes #6537. --- diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index cd07f2abd98..9ecb6e3566a 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup-generator.c @@ -109,7 +109,6 @@ static int create_disk( "SourcePath=/etc/crypttab\n" "DefaultDependencies=no\n" "Conflicts=umount.target\n" - "BindsTo=dev-mapper-%i.device\n" "IgnoreOnIsolate=true\n" "After=cryptsetup-pre.target\n", f);