ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
7e7c9f
From 070dfe9be5cf873e2a815232900da9651dfe4544 Mon Sep 17 00:00:00 2001
7e7c9f
From: David Tardon <dtardon@redhat.com>
7e7c9f
Date: Tue, 17 Mar 2020 10:49:44 +0100
7e7c9f
Subject: [PATCH] mount: don't add Requires for tmp.mount
7e7c9f
7e7c9f
This is a follow-up to #1372249.
7e7c9f
7e7c9f
rhel-only
7e7c9f
Resolves: #1813270
7e7c9f
---
7e7c9f
 src/core/mount.c | 2 +-
7e7c9f
 1 file changed, 1 insertion(+), 1 deletion(-)
7e7c9f
7e7c9f
diff --git a/src/core/mount.c b/src/core/mount.c
7e7c9f
index 56fda1b73f..72e981676d 100644
7e7c9f
--- a/src/core/mount.c
7e7c9f
+++ b/src/core/mount.c
7e7c9f
@@ -300,7 +300,7 @@ static int mount_add_mount_links(Mount *m) {
7e7c9f
                 if (r < 0)
7e7c9f
                         return r;
7e7c9f
 
7e7c9f
-                if (UNIT(m)->fragment_path) {
7e7c9f
+                if (UNIT(m)->fragment_path && !streq(UNIT(m)->id, "tmp.mount")) {
7e7c9f
                         /* If we have fragment configuration, then make this dependency required */
7e7c9f
                         r = unit_add_dependency(other, UNIT_REQUIRES, UNIT(m), true);
7e7c9f
                         if (r < 0)