Sujet : Re: More systemdCrap
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 13. Mar 2025, 09:06:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqu3mv$3577a$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Pan/0.162 (Pokrosvk)
On Thu, 13 Mar 2025 08:21:11 +0100, Carlos E.R. wrote:
On 2025-03-13 01:12, Lawrence D'Oliveiro wrote:
>
You can specify any filename you like. See the docs.
>
Certainly, but that's a problem. You can no longer run
>
journalctl --boot=-1
>
and get the expected modified results as the OP wants.
This is why I said, see the docs
<
https://www.freedesktop.org/software/systemd/man/latest/journalctl.html>:
-D DIR, --directory=DIR
Takes a directory path as argument. If specified, journalctl will
operate on the specified journal directory DIR instead of the
default runtime and system journal paths.
Added in version 187.
-i GLOB, --file=GLOB
Takes a file glob as an argument. If specified, journalctl will
operate on the specified journal files matching GLOB instead of
the default runtime and system journal paths. May be specified
multiple times, in which case files will be suitably interleaved.
Added in version 205.
--root=ROOT
Takes a directory path as an argument. If specified, journalctl
will operate on journal directories and catalog file hierarchy
underneath the specified directory instead of the root directory
(e.g. --update-catalog will create
ROOT/var/lib/systemd/catalog/database, and journal files under
ROOT/run/journal/ or ROOT/var/log/journal/ will be displayed).
Added in version 201.