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