2013-04-23 11:39:56 +02:00
|
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
|
|
Date: Wed, 9 Nov 2011 11:10:49 +0100
|
2013-09-08 15:31:37 +02:00
|
|
|
Subject: delay fsck / cryptsetup after md / dmraid are started
|
2013-04-23 11:39:56 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
src/cryptsetup/cryptsetup-generator.c | 1 +
|
|
|
|
units/systemd-fsck@.service.in | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
2013-10-04 16:07:46 +02:00
|
|
|
Index: systemd-208/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
===================================================================
|
|
|
|
--- systemd-208.orig/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
+++ systemd-208/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
@@ -119,6 +119,7 @@ static int create_disk(
|
2013-04-23 11:39:56 +02:00
|
|
|
"DefaultDependencies=no\n"
|
|
|
|
"BindsTo=dev-mapper-%i.device\n"
|
2013-10-04 16:07:46 +02:00
|
|
|
"IgnoreOnIsolate=true\n"
|
2013-09-08 15:31:37 +02:00
|
|
|
+ "After=md.service dmraid.service\n"
|
2013-04-23 11:39:56 +02:00
|
|
|
"After=systemd-readahead-collect.service systemd-readahead-replay.service\n",
|
|
|
|
f);
|
|
|
|
|
2013-10-04 16:07:46 +02:00
|
|
|
Index: systemd-208/units/systemd-fsck@.service.in
|
|
|
|
===================================================================
|
|
|
|
--- systemd-208.orig/units/systemd-fsck@.service.in
|
|
|
|
+++ systemd-208/units/systemd-fsck@.service.in
|
2013-04-23 11:39:56 +02:00
|
|
|
@@ -10,7 +10,7 @@ Description=File System Check on %f
|
|
|
|
Documentation=man:systemd-fsck@.service(8)
|
|
|
|
DefaultDependencies=no
|
|
|
|
BindsTo=%i.device
|
|
|
|
-After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device
|
2013-09-08 15:31:37 +02:00
|
|
|
+After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device md.service dmraid.service
|
2013-04-23 11:39:56 +02:00
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|