Zbigniew Jędrzejewski-Szmek 62fe94
From 66f311206e908a5b6f21e66fad73e1e5ea3e31d6 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: Ivan Shapovalov <intelfx100@gmail.com>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Wed, 27 Aug 2014 00:17:43 +0400
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] units: order systemd-fsck@.service after local-fs-pre.target.
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
With this change, it becomes possible to order a unit to activate before any
Zbigniew Jędrzejewski-Szmek 62fe94
modifications to the file systems. This is especially useful for supporting
Zbigniew Jędrzejewski-Szmek 62fe94
resume from hibernation.
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 units/systemd-fsck@.service.in | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/units/systemd-fsck@.service.in b/units/systemd-fsck@.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
index c12efa8e76..d2cda6a466 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/units/systemd-fsck@.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/units/systemd-fsck@.service.in
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -10,7 +10,7 @@ Description=File System Check on %f
Zbigniew Jędrzejewski-Szmek 62fe94
 Documentation=man:systemd-fsck@.service(8)
Zbigniew Jędrzejewski-Szmek 62fe94
 DefaultDependencies=no
Zbigniew Jędrzejewski-Szmek 62fe94
 BindsTo=%i.device
Zbigniew Jędrzejewski-Szmek 62fe94
-After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device systemd-fsck-root.service
Zbigniew Jędrzejewski-Szmek 62fe94
+After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device systemd-fsck-root.service local-fs-pre.target
Zbigniew Jędrzejewski-Szmek 62fe94
 Before=shutdown.target
Zbigniew Jędrzejewski-Szmek 62fe94
 
Zbigniew Jędrzejewski-Szmek 62fe94
 [Service]