From 84f5a9dcb0561c78ea2f4bc25d0921b31ea5ac97 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Jan 04 2018 16:37:24 +0000 Subject: post: Strip glibc_post_upgrade.x86_64 See discussion in https://src.fedoraproject.org/rpms/glibc/pull-request/4 It's never necessary for rpm-ostree based systems, as even our `ex livefs` for live updates will only swap the filesystem once it's fully complete (all scripts have been run). --- diff --git a/treecompose-post.sh b/treecompose-post.sh index f1f23d0..81d6c5e 100755 --- a/treecompose-post.sh +++ b/treecompose-post.sh @@ -8,3 +8,13 @@ if ! grep -q '^Storage=persistent' /etc/systemd/journald.conf; then (cat /etc/systemd/journald.conf && echo 'Storage=persistent') > /etc/systemd.journald.conf.new mv /etc/systemd.journald.conf{.new,} fi + +# 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