From 1e9f0ccadf0bb086b10cd68c6ff534d1759d2576 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 7 Apr 2018 18:43:47 +0200 Subject: [PATCH] analyze: give a hint what is it means that boot is still active $ build/systemd-analyze time Bootup is not yet finished (org.freedesktop.systemd1.Manager.FinishTimestampMonotonic=0). Please try again later. Hint: Use 'systemctl list-jobs' to see active jobs --- src/analyze/analyze.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 3bfeb278f83..68229a94577 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -303,7 +303,11 @@ static int acquire_boot_times(sd_bus *bus, struct boot_times **bt) { return -EIO; if (times.finish_time <= 0) { - log_error("Bootup is not yet finished. Please try again later."); + log_error("Bootup is not yet finished (org.freedesktop.systemd1.Manager.FinishTimestampMonotonic=%"PRIu64").\n" + "Please try again later.\n" + "Hint: Use 'systemctl%s list-jobs' to see active jobs", + times.finish_time, + arg_scope == UNIT_FILE_SYSTEM ? "" : " --user"); return -EINPROGRESS; } -- 2.47.3