From 02a3c8755960f0e1851da5ec0f8d4b66aee06494 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 23 Oct 2024 11:18:23 +0200 Subject: [PATCH] Install glibc-langpack on centos as well Currently we end up with LANG=en_US.UTF8 without glibc-langpack-en installed (at least on CentOS 9 Stream). Change-Id: I252d41d5bc3ea2d1a62795839fedce63923a2a00 --- diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot b/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot index 72b013952..3cbf66509 100755 --- a/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot +++ b/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot @@ -205,7 +205,7 @@ function _install_pkg_manager { local _lang_pack="" local _extra_pkgs="" - if [[ $DISTRO_NAME == "fedora" ]]; then + if [[ ${DISTRO_NAME} =~ (centos|fedora) ]]; then # glibc from F24 onwards has split locales into "langpack" # packages. Host yum doesn't understand the # weak-dependencies glibc now uses to get the