a4b143
From 0ac89decd89110fa64fe1f9ff7ff5a271026a272 Mon Sep 17 00:00:00 2001
a4b143
From: Andrey Borzenkov <arvidjaar@gmail.com>
a4b143
Date: Sun, 29 Sep 2013 15:37:30 +0400
a4b143
Subject: [PATCH] set IgnoreOnIsolate=true for systemd-cryptsetup@.service
a4b143
a4b143
When crypttab contains noauto, cryptsetup service does not have any
a4b143
explicit dependencies. If service is started later manually (directly or via
a4b143
mount dependency) it will be stopped on isolate.
a4b143
a4b143
mount units already have IgnoreOnIsolate set by default. Set it by
a4b143
default for cryptsetup units as well.
a4b143
---
a4b143
 src/cryptsetup/cryptsetup-generator.c | 1 +
a4b143
 1 file changed, 1 insertion(+)
a4b143
a4b143
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
a4b143
index 8792e6b..e1798a3 100644
a4b143
--- a/src/cryptsetup/cryptsetup-generator.c
a4b143
+++ b/src/cryptsetup/cryptsetup-generator.c
a4b143
@@ -118,6 +118,7 @@ static int create_disk(
a4b143
                 "Conflicts=umount.target\n"
a4b143
                 "DefaultDependencies=no\n"
a4b143
                 "BindsTo=dev-mapper-%i.device\n"
a4b143
+                "IgnoreOnIsolate=true\n"
a4b143
                 "After=systemd-readahead-collect.service systemd-readahead-replay.service\n",
a4b143
                 f);
a4b143