anitazha / rpms / systemd

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