]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
centos: Make sure glibc-all-langpacks doesn't get installed
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 28 Apr 2023 09:21:20 +0000 (11:21 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 30 Apr 2023 20:53:55 +0000 (22:53 +0200)
On CentOS 8, glibc-all-langpacks is pulled in as a dependency of
filesystem. Let's make sure dnf prefers glibc-minimal-langpack by
installing it explicitly.

mkosi/distributions/centos.py

index 6750b88c353bc32a7db373f974ba6565f5a48c0d..f6173fe482bafaaa5ce86a813c0b57ef44fd4c4c 100644 (file)
@@ -78,7 +78,8 @@ class CentosInstaller(DistributionInstaller):
 
     @classmethod
     def install(cls, state: MkosiState) -> None:
-        cls.install_packages(state, ["filesystem"], apivfs=False)
+        # Make sure glibc-minimal-langpack is installed instead of glibc-all-langpacks.
+        cls.install_packages(state, ["filesystem", "glibc-minimal-langpack"], apivfs=False)
 
         # On Fedora, the default rpmdb has moved to /usr/lib/sysimage/rpm so if that's the case we need to
         # move it back to /var/lib/rpm on CentOS.