From: Zbigniew Jędrzejewski-Szmek Date: Wed, 11 Mar 2020 12:40:17 +0000 (+0100) Subject: core: log an info line about the default target X-Git-Tag: v246-rc1~754^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c86c31d9ca3149da6ecc4a435c4c72953f88dcbb;p=thirdparty%2Fsystemd.git 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. --- 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;