Move persistent-journal into base
This is something we want people to have by default. Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
1 parent
a14ba65620
commit
3addf4c691
2 files changed
+1
No files matched your search
@@ -22,6 +22,7 @@ include:
|
||||
- initramfs.yaml
|
||||
- basic-fixes.yaml
|
||||
- kernel-install.yaml
|
||||
- persistent-journal.yaml
|
||||
- fedora-repos.yaml
|
||||
|
||||
packages:
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Taken from https://github.com/coreos/fedora-coreos-config/blob/aa4373201f415baff85701f7f96ab0583931af6c/overlay.d/05core/usr/lib/systemd/journald.conf.d/10-coreos-persistent.conf#L5
|
||||
# Hardcode persistent journal by default. journald has this "auto" behaviour
|
||||
# that only makes logs persistent if `/var/log/journal` exists, which it won't
|
||||
# on first boot because `/var` isn't fully populated. We should be able to get
|
||||
# rid of this once we move to sysusers and create the dir in the initrd.
|
||||
|
||||
postprocess:
|
||||
- | #!/bin/bash
|
||||
mkdir -p /usr/lib/systemd/journald.conf.d/
|
||||
cat >/usr/lib/systemd/journald.conf.d/10-centos-bootc-persistent.conf << EOF
|
||||
[Journal]
|
||||
Storage=persistent
|
||||
EOF
|
||||
Reference in new issue
Block a user