From: Zbigniew Jędrzejewski-Szmek Date: Sat, 7 Apr 2018 16:43:47 +0000 (+0200) Subject: analyze: give a hint what is it means that boot is still active X-Git-Tag: v239~425^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e9f0ccadf0bb086b10cd68c6ff534d1759d2576;p=thirdparty%2Fsystemd.git 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 --- 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; }