]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: log an info line about the default target
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Mar 2020 12:40:17 +0000 (13:40 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Mar 2020 14:09:22 +0000 (15:09 +0100)
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

index 0f49dae73a168246367a61b35052a3d1d82f2885..1a1e09035b3a3d4b2c1961da3e0336c6df8edc2a 100644 (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;