5c11ee24a0
- Create and own more systemd drop-in directories. - Improve mini packages for bootstrapping. - do not mount /tmp as tmpfs by default. - Fix install script when there is no inittab - Create a systemd-mini specfile to prevent cycle in bootstrapping OBS-URL: https://build.opensuse.org/request/show/139371 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=300
36 lines
1.5 KiB
Diff
36 lines
1.5 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(-)
|
|
|
|
Index: systemd-189/src/cryptsetup/cryptsetup-generator.c
|
|
===================================================================
|
|
--- systemd-189.orig/src/cryptsetup/cryptsetup-generator.c
|
|
+++ systemd-189/src/cryptsetup/cryptsetup-generator.c
|
|
@@ -192,6 +192,7 @@ static int create_disk(
|
|
"DefaultDependencies=no\n"
|
|
"BindsTo=%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);
|
|
|
|
Index: systemd-189/units/systemd-fsck@.service.in
|
|
===================================================================
|
|
--- systemd-189.orig/units/systemd-fsck@.service.in
|
|
+++ systemd-189/units/systemd-fsck@.service.in
|
|
@@ -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
|
|
+After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device lvm.service md.service dmraid.service
|
|
Before=shutdown.target
|
|
|
|
[Service]
|