]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi: when cleaning rpm data, also nuke /usr/lib/sysimage/rpm
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Jun 2022 14:46:25 +0000 (16:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Jun 2022 17:00:00 +0000 (19:00 +0200)
F36 moved rpm db there. SUSE has been using this location for a while.
So our cleaning of rpm data wasn't effective.

mkosi/__init__.py

index c47b718a646c7b1a2adfac43c25d7fea6ecb888e..6e6143c22b478cc3970e5e10f4d130e28502e0a4 100644 (file)
@@ -1999,6 +1999,7 @@ def clean_rpm_metadata(root: Path, always: bool) -> None:
     """Remove rpm metadata if /bin/rpm is not present in the image"""
     paths = [
         "/var/lib/rpm",
+        "/usr/lib/sysimage/rpm",
     ]
 
     clean_paths(root, paths, tool='/bin/rpm', always=always)