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.
@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.