dm-vdo / bunsen

Ansible suite to configure a set of machines to replicate the VDO Team's test environment.
GNU General Public License v2.0
0 stars 4 forks source link

Copy journald.conf file from /usr/lib/systemd #41

Closed C2Redhat closed 3 months ago

C2Redhat commented 3 months ago

Starting from Fedora 40, journald.conf file is no longer in /etc/systemd by default. Since bunsen is expecting journald.conf to be in /etc/systemd, we copy it from /usr/lib/systemd. The /usr/lib/systemd/journald.conf file does not exist in previous Fedora and RHEL releases, therefore we need to test it first before we copy it.

rhawalsh commented 3 months ago

To elaborate on the systemd change, this is from the RPM changelog for systemd on a Fedora 40 system:

* Fri Dec 08 2023 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 255-3
- Move config files to /usr/lib/systemd (e.g. /etc/systemd/system.conf →
  /usr/lib/systemd/systemd.conf). Both config file locations were already
  supported, and the files installed in /etc/ were "empty" (i.e. they had
  only comments and section headers). The move does not change the
  configuration, but just makes /etc more empty by default. See
  https://github.com/systemd/systemd/commit/6495361c7d for more discussion
  and details.

Here is the link to the actual commit that implemented this change: https://github.com/systemd/systemd/commit/6495361c7d