Bug 1383066 - updating systemd re-creates /var/log/journal
Summary: updating systemd re-creates /var/log/journal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 24
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-09 13:38 UTC by Alexandre Oliva
Modified: 2016-10-14 05:00 UTC (History)
8 users (show)

Fixed In Version: systemd-231-10.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 05:00:27 UTC
Type: Bug


Attachments (Terms of Use)

Description Alexandre Oliva 2016-10-09 13:38:17 UTC
Description of problem:
Removing /var/log/journal is documented and recommended as a way to configure journald will only use a volatile journal.  However, because the systemd package owns directory /var/log/journal, the directory gets created and breaking this configuration every time systemd is updated.

Version-Release number of selected component (if applicable):
systemd-229-16.fc24.x86_64

How reproducible:
Every time

Steps to Reproduce:
1.rm -rf /var/log/journal &&systemctl restart systemd-journald
2.dnf upgrade systemd && systemctl restart systemd-journald
3.ls /var/log/journal

Actual results:
/var/log/journal is there again, and journald uses a non-volatile journal again

Expected results:
Still no /var/log/journal, and journal still in volatile storage

Additional info:

Comment 2 Alexandre Oliva 2016-10-12 01:56:00 UTC
Thanks, Zbigniew!  Looking at the patch, I'm missing code to play the role of %attrs for /var/log/journal where it is now created.

Comment 3 Zbigniew Jędrzejewski-Szmek 2016-10-12 03:49:36 UTC
Look at the chunk starting with "# Make sure new journal files will be owned by the "systemd-journal" group". I think it should have the same effect.

Comment 4 Fedora Update System 2016-10-13 05:53:23 UTC
systemd-231-10.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-005ad5dcb1

Comment 5 Alexandre Oliva 2016-10-13 21:46:47 UTC
ah, yes, thanks, I concur, the chgrp and chmod commands will have the same effect.  at least as long as %{_localstatedir} expands to /var  ;-)

Comment 6 Fedora Update System 2016-10-14 05:00:27 UTC
systemd-231-10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


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