From c86c31d9ca3149da6ecc4a435c4c72953f88dcbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 11 Mar 2020 13:40:17 +0100 Subject: [PATCH] core: log an info line about the default target If the default target is not specified on the kernel command line, it may not be obvious what we are booting into. See for example https://github.com/systemd/systemd/issues/15062#issuecomment-597577464. --- src/core/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index 0f49dae73a1..1a1e09035b3 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -2046,7 +2046,10 @@ static int do_queue_default_job( } else if (r < 0) { *ret_error_message = "Failed to isolate default target"; return log_emergency_errno(r, "Failed to isolate default target: %s", bus_error_message(&error, r)); - } + } else + log_info("Queued %s job for default target %s.", + job_type_to_string(job->type), + unit_status_string(job->unit)); m->default_unit_job_id = job->id; -- 2.47.3