From e1037fbcc27b5acdfe203b5c1e68cdcfb5c17d581e822ed33786bc23cbaac459 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Thu, 19 Jan 2012 14:25:36 +0000 Subject: [PATCH] Accepting request 100745 from home:tittiatcoke:branches:Base:System Update for systemd to include a persistent journal. OBS-URL: https://build.opensuse.org/request/show/100745 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=233 --- systemd-gtk.spec | 1 - systemd.changes | 6 ++++++ systemd.spec | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/systemd-gtk.spec b/systemd-gtk.spec index ad9de14c..b3ac698d 100644 --- a/systemd-gtk.spec +++ b/systemd-gtk.spec @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - Name: systemd-gtk Url: http://www.freedesktop.org/wiki/Software/systemd Version: 38 diff --git a/systemd.changes b/systemd.changes index 1e4827ea..df2f3f7d 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 19 13:47:39 UTC 2012 - tittiatcoke@gmail.com + +- Make the systemd journal persistent by creating the + /var/log/journal directory + ------------------------------------------------------------------- Wed Jan 18 09:03:51 UTC 2012 - tittiatcoke@gmail.com diff --git a/systemd.spec b/systemd.spec index fc0f7c57..1e6ca6f6 100644 --- a/systemd.spec +++ b/systemd.spec @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - %define build_plymouth 0 #don't require python, use recommends (bnc#716939) @@ -230,6 +229,9 @@ ln -s systemd-random-seed-load.service %{buildroot}/lib/systemd/system/random.se mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d/ install -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/rsyslog.d/ +# Create the /var/log/journal directory to change the volatile journal to a persistent one +mkdir -p %{buildroot}/var/log/journal + %if %{build_plymouth} (cd %{buildroot} && find . -name '*plymouth*') > files.plymouth %endif @@ -380,6 +382,7 @@ rm -rf %{buildroot} %dir /var/lib/systemd %dir /var/lib/systemd/sysv-convert %dir /var/lib/systemd/migrated +%dir /var/log/journal %files devel %defattr(-,root,root,-)