mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-31 13:32:10 +01:00
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
14 lines
418 B
Diff
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}
|