2011-12-09 15:44:59 +01:00
|
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
|
|
Date: Wed, 9 Nov 2011 11:10:49 +0100
|
2013-09-08 11:05:47 +02:00
|
|
|
Subject: delay fsck / cryptsetup after md / dmraid are started
|
2011-12-09 15:44:59 +01:00
|
|
|
|
|
|
|
---
|
2013-04-13 13:09:53 +02:00
|
|
|
src/cryptsetup/cryptsetup-generator.c | 1 +
|
|
|
|
units/systemd-fsck@.service.in | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
2011-12-09 15:44:59 +01:00
|
|
|
|
2013-09-13 09:25:15 +02:00
|
|
|
--- systemd-206_git201308300826.orig/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
+++ systemd-206_git201308300826/src/cryptsetup/cryptsetup-generator.c
|
2013-04-19 22:31:17 +02:00
|
|
|
@@ -160,6 +160,7 @@ static int create_disk(
|
|
|
|
"Conflicts=umount.target\n"
|
2011-12-09 15:44:59 +01:00
|
|
|
"DefaultDependencies=no\n"
|
2013-04-19 22:31:17 +02:00
|
|
|
"BindsTo=dev-mapper-%i.device\n"
|
2013-09-08 11:05:47 +02:00
|
|
|
+ "After=md.service dmraid.service\n"
|
2013-04-19 22:31:17 +02:00
|
|
|
"After=systemd-readahead-collect.service systemd-readahead-replay.service\n",
|
|
|
|
f);
|
2011-12-09 15:44:59 +01:00
|
|
|
|
2013-09-13 09:25:15 +02:00
|
|
|
--- systemd-206_git201308300826.orig/units/systemd-fsck@.service.in
|
|
|
|
+++ systemd-206_git201308300826/units/systemd-fsck@.service.in
|
2012-10-26 14:34:44 +02:00
|
|
|
@@ -10,7 +10,7 @@ Description=File System Check on %f
|
|
|
|
Documentation=man:systemd-fsck@.service(8)
|
2011-12-09 15:44:59 +01:00
|
|
|
DefaultDependencies=no
|
2012-10-26 14:34:44 +02:00
|
|
|
BindsTo=%i.device
|
2011-12-09 15:44:59 +01:00
|
|
|
-After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device
|
2013-09-08 11:05:47 +02:00
|
|
|
+After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device md.service dmraid.service
|
2011-12-09 15:44:59 +01:00
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|