From: Lennart Poettering Date: Wed, 24 Oct 2018 14:55:17 +0000 (+0200) Subject: execute: if we fail to do namespacing, explain why we refuse to continue in a debug... X-Git-Tag: v240~481^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2194547e3b09746b095ab75076b1f86779086d39;p=thirdparty%2Fsystemd.git execute: if we fail to do namespacing, explain why we refuse to continue in a debug message --- diff --git a/src/core/execute.c b/src/core/execute.c index f561bfe11a3..b531dedf327 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; }