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

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