forked from pool/systemd
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
|
From c6170719e7afbcecc04e8939e93e9678529e6391 Mon Sep 17 00:00:00 2001
|
||
|
From: Frederic Crozat <fcrozat@suse.com>
|
||
|
Date: Wed, 9 Nov 2011 11:10:49 +0100
|
||
|
Subject: [PATCH] delay fsck / cryptsetup after md / dmraid / lvm are started
|
||
|
|
||
|
---
|
||
|
src/cryptsetup-generator.c | 1 +
|
||
|
units/fsck@.service.in | 2 +-
|
||
|
2 files changed, 2 insertions(+), 1 deletions(-)
|
||
|
|
||
|
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
|
||
|
index 14fcce8..e62f0e0 100644
|
||
|
--- a/src/cryptsetup-generator.c
|
||
|
+++ b/src/cryptsetup-generator.c
|
||
|
@@ -186,6 +186,7 @@ static int create_disk(
|
||
|
"DefaultDependencies=no\n"
|
||
|
"BindTo=%s dev-mapper-%%i.device\n"
|
||
|
"After=systemd-readahead-collect.service systemd-readahead-replay.service %s\n"
|
||
|
+ "After=md.service dmraid.service lvm.service\n"
|
||
|
"Before=umount.target\n",
|
||
|
d, d);
|
||
|
|
||
|
diff --git a/units/fsck@.service.in b/units/fsck@.service.in
|
||
|
index e1f7736..c1870ce 100644
|
||
|
--- a/units/fsck@.service.in
|
||
|
+++ b/units/fsck@.service.in
|
||
|
@@ -9,7 +9,7 @@
|
||
|
Description=File System Check on %f
|
||
|
DefaultDependencies=no
|
||
|
BindTo=%i.device
|
||
|
-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]
|
||
|
--
|
||
|
1.7.7
|
||
|
|