From 3c66730d7e77c2d28686fe7a1d27567b7d6ff7f6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 3 Feb 2022 15:22:53 -0800 Subject: [PATCH] cleanup: handle RPM database move to /usr In F36, the RPM database is being moved from /var/lib/rpm to /usr/lib/sysimage/rpm: https://fedoraproject.org/wiki/Changes/RelocateRPMToUsr https://bugzilla.redhat.com/show_bug.cgi?id=2042099 So we need to empty that location in runtime-cleanup. Seems fine to just list both locations, for a while at least. Signed-off-by: Adam Williamson --- share/templates.d/99-generic/runtime-cleanup.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 34ac2757..fcc53644 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -74,7 +74,7 @@ remove /usr/share/mime/multipart /usr/share/mime/packages /usr/share/mime/text remove /usr/share/mime/video /usr/share/mime/x-content /usr/share/mime/x-epoc remove /var/db /var/games /var/tmp /var/yp /var/nis /var/opt /var/local remove /var/mail /var/spool /var/preserve /var/report -remove /var/lib/rpm/* /var/lib/yum /var/lib/dnf +remove /usr/lib/sysimage/rpm/* /var/lib/rpm/* /var/lib/yum /var/lib/dnf ## clean up the files created by various '> /dev/null's remove /dev/*