mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00:00
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:
parent
f1d075dcb7
commit
c86c31d9ca
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue