2011-12-09 15:44:59 +01:00
|
|
|
From: Frederic Crozat <fcrozat@suse.com>
|
|
|
|
Date: Wed, 9 Nov 2011 11:10:49 +0100
|
2013-04-13 13:09:53 +02:00
|
|
|
Subject: delay fsck / cryptsetup after md / dmraid / lvm 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-07-23 11:21:21 +02:00
|
|
|
--- systemd-206.orig/src/cryptsetup/cryptsetup-generator.c
|
|
|
|
+++ systemd-206/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"
|
2011-12-09 15:44:59 +01:00
|
|
|
+ "After=md.service dmraid.service lvm.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-07-23 11:21:21 +02:00
|
|
|
--- systemd-206.orig/units/systemd-fsck@.service.in
|
|
|
|
+++ systemd-206/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
|
|
|
|
+After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device lvm.service md.service dmraid.service
|
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
[Service]
|