Fix problem with systemd logs not being persisted
During the boot with ostree, the detection of whether the logs on the system should be persisted can be confused. Explicitely configure them to be persisted. Copied from atomic-ws.
This commit is contained in:
parent
f5191fcf1a
commit
44883daf24
1 changed files with 5 additions and 0 deletions
5
post.sh
5
post.sh
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1265295 ; some
|
||||||
|
# aspects of that have been fixed, but apparently this is still
|
||||||
|
# necessary, and generally makes things less finicky
|
||||||
|
echo 'Storage=persistent' >> /etc/systemd/journald.conf
|
||||||
|
|
Loading…
Reference in a new issue