dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
7e7c9f
From 0693f51f979f260426cddc1f270e28e3cb2b46fa Mon Sep 17 00:00:00 2001
7e7c9f
From: tblume <Thomas.Blume@suse.com>
7e7c9f
Date: Thu, 30 Mar 2017 11:21:18 +0200
7e7c9f
Subject: [PATCH] units: move Before deps for quota services to
7e7c9f
 remote-fs.target (#5627)
7e7c9f
7e7c9f
Creating quota on an iscsi device is causing dependency loops at next reboot.
7e7c9f
Reason is that systemd-quotacheck and quotaon.service are ordered before
7e7c9f
local-fs.target and quota enabled mounts have a before dependency to them.
7e7c9f
This cannot work for _netdev mounts, because network activation is ordered
7e7c9f
after local-fs.target.
7e7c9f
Moving the Before dependency for systemd-quotacheck and quotaon.service
7e7c9f
to remote-fs.target fixes this.
7e7c9f
7e7c9f
(cherry picked from commit 4e6f13af93a551933a75331b1f67123b3d09f6ef)
7e7c9f
7e7c9f
Resolves: #1693374
7e7c9f
---
7e7c9f
 units/quotaon.service.in            | 2 +-
7e7c9f
 units/systemd-quotacheck.service.in | 2 +-
7e7c9f
 2 files changed, 2 insertions(+), 2 deletions(-)
7e7c9f
7e7c9f
diff --git a/units/quotaon.service.in b/units/quotaon.service.in
7e7c9f
index 49a50a7feb..57667e110d 100644
7e7c9f
--- a/units/quotaon.service.in
7e7c9f
+++ b/units/quotaon.service.in
7e7c9f
@@ -10,7 +10,7 @@ Description=Enable File System Quotas
7e7c9f
 Documentation=man:quotaon(8)
7e7c9f
 DefaultDependencies=no
7e7c9f
 After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-quotacheck.service
7e7c9f
-Before=local-fs.target shutdown.target
7e7c9f
+Before=remote-fs.target shutdown.target
7e7c9f
 ConditionPathExists=@QUOTAON@
7e7c9f
 
7e7c9f
 [Service]
7e7c9f
diff --git a/units/systemd-quotacheck.service.in b/units/systemd-quotacheck.service.in
7e7c9f
index f726ea1bcd..41c9bea6d2 100644
7e7c9f
--- a/units/systemd-quotacheck.service.in
7e7c9f
+++ b/units/systemd-quotacheck.service.in
7e7c9f
@@ -10,7 +10,7 @@ Description=File System Quota Check
7e7c9f
 Documentation=man:systemd-quotacheck.service(8)
7e7c9f
 DefaultDependencies=no
7e7c9f
 After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
7e7c9f
-Before=local-fs.target shutdown.target
7e7c9f
+Before=remote-fs.target shutdown.target
7e7c9f
 ConditionPathExists=@QUOTACHECK@
7e7c9f
 
7e7c9f
 [Service]