Douglas Schilling Landgraf has uploaded a new change for review. Change subject: journal: save journal data across reboot ......................................................................
journal: save journal data across reboot According with man systemd-journald.service: By default, the journal stores log data in /run/log/journal/. Since /run/ is volatile, log data is lost at reboot. To make the data persistent, it is sufficient to create /var/log/journal/ where systemd-journald will then store the data Change-Id: I38385ced398382aaabc8063001400721f74f8be9 Signed-off-by: Douglas Schilling Landgraf <[email protected]> --- M recipe/centos7-post.ks M recipe/ovirt19-post.ks M recipe/rhevh7-post.ks 3 files changed, 21 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/46/43246/1 diff --git a/recipe/centos7-post.ks b/recipe/centos7-post.ks index 36456d1..ba21af6 100644 --- a/recipe/centos7-post.ks +++ b/recipe/centos7-post.ks @@ -1,5 +1,12 @@ %include version.ks +# According with man systemd-journald.service: +# By default, the journal stores log data in /run/log/journal/. +# Since /run/ is volatile, log data is lost at reboot. To make the data +# persistent, it is sufficient to create /var/log/journal/ where +# systemd-journald will then store the data +install -dm 0755 /var/log/journal + # patch kdumpctl so "net" still works for now # can remove when rhbz#1139298 lands # rhbz#1095140 diff --git a/recipe/ovirt19-post.ks b/recipe/ovirt19-post.ks index 0097412..a039a6c 100644 --- a/recipe/ovirt19-post.ks +++ b/recipe/ovirt19-post.ks @@ -1,3 +1,10 @@ +# According with man systemd-journald.service: +# By default, the journal stores log data in /run/log/journal/. +# Since /run/ is volatile, log data is lost at reboot. To make the data +# persistent, it is sufficient to create /var/log/journal/ where +# systemd-journald will then store the data +install -dm 0755 /var/log/journal + # ovirt-install-node-stateless # ovirt_setup_libvirtd() # just to get a boot warning to shut up diff --git a/recipe/rhevh7-post.ks b/recipe/rhevh7-post.ks index 7a97636..63bcd2f 100644 --- a/recipe/rhevh7-post.ks +++ b/recipe/rhevh7-post.ks @@ -1,5 +1,12 @@ %include version.ks +# According with man systemd-journald.service: +# By default, the journal stores log data in /run/log/journal/. +# Since /run/ is volatile, log data is lost at reboot. To make the data +# persistent, it is sufficient to create /var/log/journal/ where +# systemd-journald will then store the data +install -dm 0755 /var/log/journal + # patch kdumpctl so "net" still works for now # can remove when rhbz#1139298 lands # rhbz#1095140 -- To view, visit https://gerrit.ovirt.org/43246 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I38385ced398382aaabc8063001400721f74f8be9 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Douglas Schilling Landgraf <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
