mirror of
https://pagure.io/workstation-ostree-config.git
synced 2026-11-03 21:49:45 -09:00
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
This commit is contained in:
parent
d6830fac44
commit
31f5be2f8d
1 changed files with 30 additions and 0 deletions
30
common.yaml
30
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue