2018-01-09 21:33:30 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# This file is very similar to treecompose-post.sh
|
|
|
|
# from fedora-atomic: https://pagure.io/fedora-atomic
|
|
|
|
# Make changes there first where applicable.
|
2016-10-07 17:00:04 +00:00
|
|
|
|
|
|
|
set -xeuo pipefail
|
2016-10-07 17:13:55 +00:00
|
|
|
|
2018-01-09 21:33:30 +00:00
|
|
|
# Work around https://bugzilla.redhat.com/show_bug.cgi?id=1265295
|
2022-01-21 10:29:47 +00:00
|
|
|
# From https://github.com/coreos/fedora-coreos-config/blob/testing-devel/overlay.d/05core/usr/lib/systemd/journald.conf.d/10-coreos-persistent.conf
|
|
|
|
install -dm0755 /usr/lib/systemd/journald.conf.d/
|
|
|
|
echo -e "[Journal]\nStorage=persistent" > /usr/lib/systemd/journald.conf.d/10-persistent.conf
|
2018-01-09 21:33:30 +00:00
|
|
|
|
|
|
|
# See: https://src.fedoraproject.org/rpms/glibc/pull-request/4
|
|
|
|
# Basically that program handles deleting old shared library directories
|
|
|
|
# mid-transaction, which never applies to rpm-ostree. This is structured as a
|
|
|
|
# loop/glob to avoid hardcoding (or trying to match) the architecture.
|
|
|
|
for x in /usr/sbin/glibc_post_upgrade.*; do
|
|
|
|
if test -f ${x}; then
|
|
|
|
ln -srf /usr/bin/true ${x}
|
|
|
|
fi
|
|
|
|
done
|