From 49d50c55bb78849f25bdf46fa76da5a6bdc5571f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Nov 2010 04:11:42 +0100 Subject: cryptsetup: bind cryptsetup service to both source and destination device --- src/cryptsetup-generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c index 3c3b99de51..b8db0d5e1c 100644 --- a/src/cryptsetup-generator.c +++ b/src/cryptsetup-generator.c @@ -100,9 +100,9 @@ static int create_disk( "[Unit]\n" "Description=Cryptography Setup for %%f\n" "DefaultDependencies=no\n" - "BindTo=%s\n" + "BindTo=%s dev-mapper-%%i.device\n" "After=systemd-readahead-collect.service systemd-readahead-replay.service %s\n" - "Before=dev-mapper-%%i.device shutdown.target\n", + "Before=dev-mapper-%%i.device shutdown.target local-fs.target\n", d, d); if (password && (streq(password, "/dev/urandom") || -- cgit v1.2.3-54-g00ecf