daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff6046
From 03e52d33bbdea731eaa79545bb1d30c5b21abe3d Mon Sep 17 00:00:00 2001
ff6046
From: Lukas Nykryn <lnykryn@redhat.com>
ff6046
Date: Mon, 5 Sep 2016 12:47:09 +0200
ff6046
Subject: [PATCH] unit: don't add Requires for tmp.mount
ff6046
ff6046
rhel-only
ff6046
Resolves: #1619292
ff6046
---
ff6046
 src/core/unit.c | 2 +-
ff6046
 1 file changed, 1 insertion(+), 1 deletion(-)
ff6046
ff6046
diff --git a/src/core/unit.c b/src/core/unit.c
ff6046
index c9f756c9c7..721d8d60a3 100644
ff6046
--- a/src/core/unit.c
ff6046
+++ b/src/core/unit.c
ff6046
@@ -1421,7 +1421,7 @@ static int unit_add_mount_dependencies(Unit *u) {
ff6046
                         if (r < 0)
ff6046
                                 return r;
ff6046
 
ff6046
-                        if (m->fragment_path) {
ff6046
+                        if (m->fragment_path && !streq(m->id, "tmp.mount")) {
ff6046
                                 r = unit_add_dependency(u, UNIT_REQUIRES, m, true, di.origin_mask);
ff6046
                                 if (r < 0)
ff6046
                                         return r;