2020-05-15 21:57:56 +00:00
|
|
|
From d52058070c0c12bb05f82460f0b4b55678b724e9 Mon Sep 17 00:00:00 2001
|
2020-04-24 23:36:52 +00:00
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Mon, 11 May 2015 15:39:38 +0200
|
2020-05-15 21:57:56 +00:00
|
|
|
Subject: [PATCH 06/18] Get rid of a useless message in user sessions
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
Namely lots of variants of
|
|
|
|
|
|
|
|
Unit nix-var-nix-db.mount is bound to inactive unit dev-disk-by\x2dlabel-nixos.device. Stopping, too.
|
|
|
|
|
|
|
|
in containers.
|
|
|
|
---
|
|
|
|
src/core/unit.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/core/unit.c b/src/core/unit.c
|
2020-05-15 21:57:56 +00:00
|
|
|
index 97e1b0004c..d3cc2ba9ec 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/src/core/unit.c
|
|
|
|
+++ b/src/core/unit.c
|
2020-05-15 21:57:56 +00:00
|
|
|
@@ -2043,7 +2043,8 @@ static void unit_check_binds_to(Unit *u) {
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
assert(other);
|
|
|
|
- log_unit_info(u, "Unit is bound to inactive unit %s. Stopping, too.", other->id);
|
|
|
|
+ if (u->type != UNIT_MOUNT || detect_container() <= 0)
|
|
|
|
+ log_unit_info(u, "Unit is bound to inactive unit %s. Stopping, too.", other->id);
|
|
|
|
|
|
|
|
/* A unit we need to run is gone. Sniff. Let's stop this. */
|
|
|
|
r = manager_add_job(u->manager, JOB_STOP, u, JOB_FAIL, NULL, &error, NULL);
|
|
|
|
--
|
2020-05-15 21:57:56 +00:00
|
|
|
2.26.2
|
2020-04-24 23:36:52 +00:00
|
|
|
|