From bea96e613eeaafa677ad146057bc665a1bf28e85 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 30 Sep 2024 09:05:01 -0700 Subject: [PATCH] Setup C.UTF-8 as a RPM install lang in yum-minimal The yum-minimal element was configuring C, en_US, and en_US.UTF-8 as languages to be installed by packages notably leaving out C.UTF-8. This appears to be due to CentOS 7 not supporting C.UTF-8 (its glibc was too old). Since then CentOS 8, CentOS 8 Stream, and CentOS 9 Stream all reportedly support C.UTF-8. Since we don't support CentOS 7 any longer it should be safe to update yum-minimal to include C.UTF-8. This ensures we have modern C locales available for use which are starting to be expected (for example Ansible apparently wants a UTF8 locale and some hardcode it to use C.UTF-8). Change-Id: I0446def63ea0fbf6bb53a0cc56c2d62f47e0ff21 --- 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 3c29d1b9b..72b013952 100755 --- a/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot +++ b/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot @@ -325,7 +325,7 @@ _run_chroot rpm --rebuilddb _run_chroot ${YUM} clean all # populate the lang reduction macro in the chroot -echo "%_install_langs C:en_US:en_US.UTF-8" | \ +echo "%_install_langs C:C.UTF-8:en_US:en_US.UTF-8" | \ sudo tee -a $TARGET_ROOT/etc/rpm/macros.langs > /dev/null _base_packages="systemd passwd findutils sudo util-linux-ng "