Bug 1387796 - RFE: switch to persistent journal by default, don't autodetect from /var
Summary: RFE: switch to persistent journal by default, don't autodetect from /var
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-21 22:40 UTC by Colin Walters
Modified: 2026-02-05 08:45 UTC (History)
8 users (show)

Fixed In Version: systemd-259~rc2-2.fc44
Clone Of:
Environment:
Last Closed: 2026-02-05 08:45:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 39624 0 None open Allow journal to be persistent by default 2025-11-07 15:03:34 UTC

Description Colin Walters 2016-10-21 22:40:46 UTC
Autodetecting whether or not to persist the journal from the presence of /var/log/journal conflicts with the "factory reset" logic as implemented by ostree (/var/ starts out empty).

We're currently carrying
https://pagure.io/fedora-atomic/blob/37389c874240db4055c8076600a89a5fa3eba4a7/f/treecompose-post.sh#_6
and while this one-liner is not a huge burden, I'm trying to track our downstream workarounds and continually approach the ideal of having the base RPMs work without tweaking.

My suggestion here is an upstream flag like --enable-journal-storage-default=persistent that we set in the spec.

Comment 1 Zbigniew Jędrzejewski-Szmek 2017-01-18 19:01:53 UTC
Yeah, I think the time has come to do something like this. I think we might event want to do this upstream.

Comment 2 Zbigniew Jędrzejewski-Szmek 2025-11-07 15:03:35 UTC
https://github.com/systemd/systemd/pull/39624


Note You need to log in before you can comment on or make changes to this bug.