From 2194547e3b09746b095ab75076b1f86779086d39 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 24 Oct 2018 16:55:17 +0200 Subject: [PATCH] execute: if we fail to do namespacing, explain why we refuse to continue in a debug message --- src/core/execute.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/execute.c b/src/core/execute.c index f561bfe11a..b531dedf32 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2431,6 +2431,10 @@ static int apply_mount_namespace( return 0; } + log_unit_debug(u, "Failed to set up namespace, and refusing to continue since the selected namespacing options alter mount environment non-trivially.\n" + "Bind mounts: %zu, temporary filesystems: %zu, root directory: %s, root image: %s, dynamic user: %s", + n_bind_mounts, context->n_temporary_filesystems, yes_no(root_dir), yes_no(root_image), yes_no(context->dynamic_user)); + return -EOPNOTSUPP; } -- 2.25.1