coredump: Add --all option

This option has coredumpctl look at all journals instead of only the
local ones. This allows coredumpctl to show information about remote
coredumps if the coredumps are made available in /var/lib/systemd/coredump
and the corresponding journals are made available in /var/log/journal.

This is already possible using the --directory option but --all makes it
more user friendly since users don't have to enter the journal directory
anymore as long as it's available under /var/log/journal.
This commit is contained in:
Daan De Meyer
2021-10-07 22:13:12 +02:00
committed by Lennart Poettering
parent 7cfe9ec983
commit d888ef68d1
4 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ _coredumpctl() {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local OPTS='-h --help --version --no-pager --no-legend -o --output -F --field -1
-r --reverse -S --since -U --until -D --directory -q --quiet --debugger
-A --debugger-arguments --json -n'
-A --debugger-arguments --json -n --all'
local -A VERBS=(
[LIST]='list info'