richardphibel / rpms / systemd

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