daandemeyer / rpms / systemd

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