diff --git a/src/journal/journalctl-misc.c b/src/journal/journalctl-misc.c index 47eb72575a..65785d4d35 100644 --- a/src/journal/journalctl-misc.c +++ b/src/journal/journalctl-misc.c @@ -115,7 +115,8 @@ int action_list_boots(void) { if (r < 0) return log_error_errno(r, "Failed to determine boots: %m"); if (r == 0) - return 0; + return log_full_errno(arg_quiet ? LOG_DEBUG : LOG_ERR, SYNTHETIC_ERRNO(ENODATA), + "No boot found."); table = table_new("idx", "boot id", "first entry", "last entry"); if (!table)