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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-11 13:40:17 +01:00
parent f1d075dcb7
commit c86c31d9ca

View file

@ -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;