anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

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

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