From c59f5fa7e04aa0c0380f33efb4cb71f7abd1ec4f Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 1 Sep 2023 16:32:48 -0700 Subject: [PATCH] runtime-cleanup: Change how logo pixmaps is cleaned up We need to keep /usr/share/pixmaps/fedora-logo-sprite.svg but there is no simple way to just keep one file so @VladimirSlavik came up with this workaround. See: https://github.com/weldr/lorax/issues/1340 Fixes #1340 --- share/templates.d/99-generic/runtime-cleanup.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 7afb9d902..b899340cc 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -329,7 +329,12 @@ removefrom yelp /usr/share/yelp/mathjax* removefrom ${branding.logos} /usr/share/plymouth/* removefrom ${branding.logos} /etc/* removefrom ${branding.logos} /usr/share/icons/{Bluecurve,oxygen}/* - removefrom ${branding.logos} /usr/share/{kde4,pixmaps}/* + + # Keep /usr/share/pixmaps/fedora-logo-sprite.svg if it exists + # See https://github.com/weldr/lorax/issues/1340 + removefrom ${branding.logos} /usr/share/kde4/* + removefrom ${branding.logos} /usr/share/pixmaps/bootloader/* + removefrom ${branding.logos} /usr/share/pixmaps/*.png %endif ## cleanup /boot/ leaving vmlinuz, and .*hmac files