da8194b45d
- Remove openSUSE Tumbleweed specific handling for default grub distributor (bsc#1191198) - Use /usr/lib/os-release as fallback (bsc#1191196) * grub2-default-distributor.patch * grub2-check-default.sh - VUL-0: grub2: grub2-once uses fixed file name in /var/tmp (bsc#1190474) * grub2-once * grub2-once.service - Fix unknown TPM error on buggy uefi firmware (bsc#1191504) * 0001-tpm-Pass-unknown-error-as-non-fatal-but-debug-print-.patch - Fix error /boot/grub2/locale/POSIX.gmo not found (bsc#1189769) * 0001-Filter-out-POSIX-locale-for-translation.patch - Fix error lvmid disk cannot be found after second disk added to the root volume group (bsc#1189874) (bsc#1071559) * 0001-ieee1275-implement-FCP-methods-for-WWPN-and-LUNs.patch - Fix error in grub installation due to unnecessary requirement to support excessive device for the root logical volume (bsc#1184135) * 0001-disk-diskfilter-Use-nodes-in-logical-volume-s-segmen.patch - Fix regression in reading xfs v4 *0001-fs-xfs-Fix-unreadable-filesystem-with-v4-superblock.patch OBS-URL: https://build.opensuse.org/request/show/928444 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=396
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 87b01d35b4db56778e2d9f99d18656026f818bab Mon Sep 17 00:00:00 2001
|
|
From: Michael Chang <mchang@suse.com>
|
|
Date: Tue, 26 Oct 2021 13:31:24 +0800
|
|
Subject: [PATCH] Filter out POSIX locale for translation
|
|
|
|
The POSIX locale is default or native operating system's locale
|
|
identical to the C locale, so no translation to human speaking languages
|
|
provided.
|
|
|
|
For this reason we should filter out LANG=POSIX as well as LANG=C upon
|
|
generating grub.cfg to avoid looking up for it's gettext's message
|
|
catalogs that will consequently result in the unpleasant message.
|
|
|
|
error: file `/boot/grub/locale/POSIX.gmo' not found
|
|
|
|
Signed-off-by: Michael Chang <mchang@suse.com>
|
|
---
|
|
util/grub.d/00_header.in | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
|
|
index 57a35a14a..b21caa4bc 100644
|
|
--- a/util/grub.d/00_header.in
|
|
+++ b/util/grub.d/00_header.in
|
|
@@ -250,7 +250,7 @@ EOF
|
|
EOF
|
|
|
|
# Gettext variables and module
|
|
-if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "x" ]; then
|
|
+if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "xPOSIX" ] && [ "x${LANG}" != "x" ]; then
|
|
cat << EOF
|
|
set locale_dir=\$prefix/locale
|
|
set lang=${grub_lang}
|
|
--
|
|
2.31.1
|
|
|