1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Eelco Dolstra <eelco.dolstra@logicblox.com>
3 Date: Mon, 11 May 2015 15:39:38 +0200
4 Subject: [PATCH] Get rid of a useless message in user sessions
6 Namely lots of variants of
8 Unit nix-var-nix-db.mount is bound to inactive unit dev-disk-by\x2dlabel-nixos.device. Stopping, too.
12 src/core/manager.c | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
15 diff --git a/src/core/manager.c b/src/core/manager.c
16 index f21a4f7ceb..4c24ce5c98 100644
17 --- a/src/core/manager.c
18 +++ b/src/core/manager.c
19 @@ -1672,7 +1672,8 @@ static unsigned manager_dispatch_stop_when_bound_queue(Manager *m) {
20 if (!unit_is_bound_by_inactive(u, &culprit))
23 - log_unit_debug(u, "Unit is stopped because bound to inactive unit %s.", culprit->id);
24 + if (u->type != UNIT_MOUNT || detect_container() <= 0)
25 + log_unit_debug(u, "Unit is stopped because bound to inactive unit %s.", culprit->id);
27 /* If stopping a unit fails continuously we might enter a stop loop here, hence stop acting on the
28 * service being unnecessary after a while. */