aports/main/grub/lang-C.UTF-8.patch
Natanael Copa 29f0a4dcb6 main/grub: avoid pull in gettext for C.UTF-8
LANG=C.UTF-8 is the default in alpine and this confuses grub. Fix this
in 00_header so "C.UTF-8" is trated as "C".

fixes #10816
2019-12-04 12:45:53 +00:00

14 lines
418 B
Diff

diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
index 93a9023..130abd4 100644
--- a/util/grub.d/00_header.in
+++ b/util/grub.d/00_header.in
@@ -191,7 +191,7 @@ EOF
EOF
# Gettext variables and module
-if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "x" ]; then
+if [ "x${LANG%.UTF-8}" != "xC" ] && [ "x${LANG}" != "x" ]; then
cat << EOF
set locale_dir=\$prefix/locale
set lang=${grub_lang}