From 31f5be2f8d6423fc782d42fa3541c93e50799283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Mon, 16 Mar 2026 11:52:46 +0100 Subject: [PATCH] common: Workaround broken mandb cache update See: https://gitlab.com/fedora/ostree/sig/-/work_items/62 See: https://gitlab.com/fedora/bootc/tracker/-/work_items/57 See: https://bugzilla.redhat.com/show_bug.cgi?id=2339038 See: https://discussion.fedoraproject.org/t/f43-change-proposal-man-db-cache-directory-change-self-contained/160773/28 --- common.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/common.yaml b/common.yaml index 3c88a19..d4de223 100644 --- a/common.yaml +++ b/common.yaml @@ -241,3 +241,33 @@ postprocess: EOF systemctl preset fedora-atomic-desktop-appstream-cache-refresh.service + + # Workaround broken mandb cache update + # See: https://gitlab.com/fedora/ostree/sig/-/work_items/62 + cat > /usr/lib/systemd/system/fedora-atomic-desktop-mandb-update.service << 'EOF' + [Unit] + Description=Workaround for Atomic Destkops to update mandb cache + Documentation=https://gitlab.com/fedora/ostree/sig/-/work_items/62 + ConditionPathIsReadWrite=/var + ConditionPathExists=/run/ostree-booted + After=local-fs.target + + [Service] + Type=oneshot + RemainAfterExit=yes + Environment=MAN_NO_LOCALE_WARNING=1 + ExecStart=mandb -q + Nice=19 + IOWeight=10 + + [Install] + WantedBy=multi-user.target + EOF + + cat >> /usr/lib/systemd/system-preset/81-atomic-desktop.preset << 'EOF' + + # See: https://gitlab.com/fedora/ostree/sig/-/work_items/62 + enable fedora-atomic-desktop-mandb-update.service + EOF + + systemctl preset fedora-atomic-desktop-mandb-update.service