anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0421-unit-don-t-add-Requires-for-tmp.mount.patch

803fb7
From a0adbe08c612f1330221c1a8bcad3cb5aedcb71b Mon Sep 17 00:00:00 2001
803fb7
From: Lukas Nykryn <lnykryn@redhat.com>
803fb7
Date: Mon, 5 Sep 2016 12:47:09 +0200
803fb7
Subject: [PATCH] unit: don't add Requires for tmp.mount
803fb7
803fb7
rhel-only
803fb7
Resolves: #1372249
803fb7
---
803fb7
 src/core/unit.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/core/unit.c b/src/core/unit.c
803fb7
index 0e90d130a..a7d6d2f45 100644
803fb7
--- a/src/core/unit.c
803fb7
+++ b/src/core/unit.c
803fb7
@@ -1155,7 +1155,7 @@ static int unit_add_mount_dependencies(Unit *u) {
803fb7
                         if (r < 0)
803fb7
                                 return r;
803fb7
 
803fb7
-                        if (m->fragment_path) {
803fb7
+                        if (m->fragment_path && !streq(m->id, "tmp.mount")) {
803fb7
                                 r = unit_add_dependency(u, UNIT_REQUIRES, m, true);
803fb7
                                 if (r < 0)
803fb7
                                         return r;