Skip to content

Skip journal check on older systems with missing journalctl --cursor-file option #5124

Description

@martinhoyer

Older systemd versions, like that on EL8: systemd-239-82.el8 do not have --cursor-file option and journal check fails on those with journalctl: unrecognized option '--cursor-file=foo.
I think it would be good to have a graceful skip for those. Something like journalctl --help | grep cursor-file check ?

f"[ -f '{cursor_file}' ] || {invocation.guest.facts.sudo_prefix} journalctl -n 0 --show-cursor --cursor-file={cursor_file}" # noqa: E501

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area | checkTest check implementation

    Type

    No type

    Projects

    • Status
      backlog
    • Status
      triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions