From 2dd9285bacc2212e20853312f44175303c84807b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 9 Dec 2021 20:03:55 +0100 Subject: [PATCH] journalctl: have -f and -e imply no-value -b Both of these take multiple seconds, best-case, to get the last few entries, but do so instantly with -b --- src/journal/journalctl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 5ea996c449f..5232351e3d4 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -551,10 +551,19 @@ static int parse_argv(int argc, char *argv[]) { if (arg_lines == ARG_LINES_DEFAULT) arg_lines = 1000; + arg_boot = true; + arg_boot_id = SD_ID128_NULL; + arg_boot_offset = 0; + break; case 'f': arg_follow = true; + + arg_boot = true; + arg_boot_id = SD_ID128_NULL; + arg_boot_offset = 0; + break; case 'o': -- 2.47.3