Skip to content

Commit

Permalink
systemd: configure journal for persistent storage
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Cressey <bcressey@amazon.com>
  • Loading branch information
bcressey committed Jul 8, 2020
1 parent 12fc3d5 commit 4d6679a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/systemd/journald.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Journal]
Storage=persistent
SplitMode=none
4 changes: 4 additions & 0 deletions packages/systemd/systemd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ URL: https://www.freedesktop.org/wiki/Software/systemd
Source0: https://github.com/systemd/systemd/archive/v%{version}/systemd-%{version}.tar.gz
Source1: var-run-tmpfiles.conf
Source2: systemd-modules-load.conf
Source3: journald.conf

# Local patch to work around the fact that /var is a bind mount from
# /local/var, and we want the /local/var/run symlink to point to /run.
Expand Down Expand Up @@ -192,6 +193,9 @@ install -p -m 0644 %{S:1} %{buildroot}%{_cross_tmpfilesdir}/var-run.conf
install -d %{buildroot}%{_cross_libdir}/modules-load.d
install -p -m 0644 %{S:2} %{buildroot}%{_cross_libdir}/modules-load.d/nf_conntrack.conf

install -d %{buildroot}%{_cross_libdir}/systemd/journald.conf.d
install -p -m 0644 %{S:3} %{buildroot}%{_cross_libdir}/systemd/journald.conf.d/journald.conf

# Remove all stock network configurations, as they can interfere
# with container networking by attempting to manage veth devices.
rm -f %{buildroot}%{_cross_libdir}/systemd/network/*
Expand Down

0 comments on commit 4d6679a

Please sign in to comment.