GRUB locale problem

Hi dear community,

I have this really stupid question;

after applying new configs from Garuda Assistant, I've got new updated Dr4gon1z3d KDE theme (which is what I've wanted to achieve), however, after restart, I'm now getting following error in grub:

error: file '/@boot/grub/locale/cs.gmo' not found.

This looks like it wants to load a Czech language, which I've never wanted, I'm using Garuda in English and only have the Czech formats (currency, time, etc.) GRUB after a while shows normally, and boots without a problem. Is there any way to solve this and stop GRUB from loading the locale I don't need to load?

Thanks in advance for any help.

Please post in- output from

ls /boot/grub/locale/
ls /boot/grub/locale/
.rw-r--r-- 125k root  8 Mai 11:07 ast.mo
.rw-r--r-- 124k root  8 Mai 11:07 ca.mo
.rw-r--r-- 116k root  8 Mai 11:07 da.mo
.rw-r--r-- 125k root  8 Mai 11:07 de.mo
.rw-r--r-- 189k root  8 Mai 11:07 [email protected]
.rw-r--r-- 125k root  8 Mai 11:07 de_CH.mo
.rw-r--r-- 156k root  8 Mai 11:07 [email protected]
.rw-r--r-- 147k root  8 Mai 11:07 [email protected]
.rw-r--r-- 147k root  8 Mai 11:07 [email protected]
.rw-r--r-- 169k root  8 Mai 11:07 [email protected]
.rw-r--r-- 130k root  8 Mai 11:07 [email protected]
.rw-r--r-- 115k root  8 Mai 11:07 [email protected]
.rw-r--r--  43k root  8 Mai 11:07 eo.mo
.rw-r--r-- 128k root  8 Mai 11:07 es.mo
.rw-r--r-- 122k root  8 Mai 11:07 fi.mo
.rw-r--r-- 132k root  8 Mai 11:07 fr.mo
.rw-r--r-- 101k root  8 Mai 11:07 gl.mo
.rw-r--r-- 122k root  8 Mai 11:07 hr.mo
.rw-r--r-- 129k root  8 Mai 11:07 hu.mo
.rw-r--r--  28k root  8 Mai 11:07 id.mo
.rw-r--r-- 123k root  8 Mai 11:07 it.mo
.rw-r--r--  22k root  8 Mai 11:07 ja.mo
.rw-r--r--  52k root  8 Mai 11:07 ko.mo
.rw-r--r--  10k root  8 Mai 11:07 lg.mo
.rw-r--r--  98k root  8 Mai 11:07 lt.mo
.rw-r--r-- 120k root  8 Mai 11:07 nb.mo
.rw-r--r-- 121k root  8 Mai 11:07 nl.mo
.rw-r--r--  60k root  8 Mai 11:07 pa.mo
.rw-r--r-- 125k root  8 Mai 11:07 pl.mo
.rw-r--r-- 124k root  8 Mai 11:07 pt.mo
.rw-r--r--  82k root  8 Mai 11:07 pt_BR.mo
.rw-r--r--  49k root  8 Mai 11:07 ro.mo
.rw-r--r-- 161k root  8 Mai 11:07 ru.mo
.rw-r--r--  92k root  8 Mai 11:07 sl.mo
.rw-r--r-- 159k root  8 Mai 11:07 sr.mo
.rw-r--r-- 120k root  8 Mai 11:07 sv.mo
.rw-r--r--  81k root  8 Mai 11:07 tr.mo
.rw-r--r-- 167k root  8 Mai 11:07 uk.mo
.rw-r--r-- 133k root  8 Mai 11:07 vi.mo
.rw-r--r--  85k root  8 Mai 11:07 zh_CN.mo
.rw-r--r--  30k root  8 Mai 11:07 zh_TW.mo

as text :slight_smile:
and
:slight_smile:


https://git.savannah.gnu.org/cgit/grub.git/commit/?id=6cd660435ec32266db31e2fe65fbc3997379cbd2

diff --git a/ChangeLog b/ChangeLog
index 27bf885d2..e02005b3f 100644
--- a/[ChangeLog](https://git.savannah.gnu.org/cgit/grub.git/tree/ChangeLog?id=090d7c81cf70e35898b4c443ce86faa586f869af)
+++ b/[ChangeLog](https://git.savannah.gnu.org/cgit/grub.git/tree/ChangeLog?id=6cd660435ec32266db31e2fe65fbc3997379cbd2)

@@ -1,5 +1,10 @@

2013-11-03 Vladimir Serbinenko <[email protected]>

+ * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors

+ if language is English.

+

+2013-11-03 Vladimir Serbinenko <[email protected]>

+

* grub-core/osdep/linux/getroot.c: Fix cast-align problems.

2013-11-02 Vladimir Serbinenko <[email protected]>

diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c
index 259251d76..df7357002 100644
--- a/[grub-core/gettext/gettext.c](https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/gettext/gettext.c?id=090d7c81cf70e35898b4c443ce86faa586f869af)
+++ b/[grub-core/gettext/gettext.c](https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/gettext/gettext.c?id=6cd660435ec32266db31e2fe65fbc3997379cbd2)

@@ -423,6 +423,10 @@ grub_gettext_init_ext (struct grub_gettext_context *ctx,

grub_free (lang);

}

+

+ if (locale[0] == 'e' && locale[1] == 'n'

+ && (locale[2] == '\0' || locale[2] == '_'))

+ grub_errno = err = GRUB_ERR_NONE;

return err;

}
2 Likes

Thanks for the welcome :grinning:

The output is:

rw-r--r-- 125k root 11 úno 16:44  ast.mo
.rw-r--r-- 124k root 11 úno 16:44  ca.mo
.rw-r--r-- 116k root 11 úno 16:44  da.mo
.rw-r--r-- 125k root 11 úno 16:44  de.mo
.rw-r--r-- 189k root 11 úno 16:44  [email protected]
.rw-r--r-- 125k root 11 úno 16:44  de_CH.mo
.rw-r--r-- 156k root 11 úno 16:44  [email protected]
.rw-r--r-- 147k root 11 úno 16:44  [email protected]
.rw-r--r-- 147k root 11 úno 16:44  [email protected]
.rw-r--r-- 169k root 11 úno 16:44  [email protected]
.rw-r--r-- 130k root 11 úno 16:44  [email protected]
.rw-r--r-- 115k root 11 úno 16:44  [email protected]
.rw-r--r--  43k root 11 úno 16:44  eo.mo
.rw-r--r-- 128k root 11 úno 16:44  es.mo
.rw-r--r-- 122k root 11 úno 16:44  fi.mo
.rw-r--r-- 132k root 11 úno 16:44  fr.mo
.rw-r--r-- 101k root 11 úno 16:44  gl.mo
.rw-r--r-- 122k root 11 úno 16:44  hr.mo
.rw-r--r-- 129k root 11 úno 16:44  hu.mo
.rw-r--r--  28k root 11 úno 16:44  id.mo
.rw-r--r-- 123k root 11 úno 16:44  it.mo
.rw-r--r--  22k root 11 úno 16:44  ja.mo
.rw-r--r--  52k root 11 úno 16:44  ko.mo
.rw-r--r--  10k root 11 úno 16:44  lg.mo
.rw-r--r--  98k root 11 úno 16:44  lt.mo
.rw-r--r-- 120k root 11 úno 16:44  nb.mo
.rw-r--r-- 121k root 11 úno 16:44  nl.mo
.rw-r--r--  60k root 11 úno 16:44  pa.mo
.rw-r--r-- 125k root 11 úno 16:44  pl.mo
.rw-r--r-- 124k root 11 úno 16:44  pt.mo
.rw-r--r--  82k root 11 úno 16:44  pt_BR.mo
.rw-r--r--  49k root 11 úno 16:44  ro.mo
.rw-r--r-- 161k root 11 úno 16:44  ru.mo
.rw-r--r--  92k root 11 úno 16:44  sl.mo
.rw-r--r-- 159k root 11 úno 16:44  sr.mo
.rw-r--r-- 120k root 11 úno 16:44  sv.mo
.rw-r--r--  81k root 11 úno 16:44  tr.mo
.rw-r--r-- 167k root 11 úno 16:44  uk.mo
.rw-r--r-- 133k root 11 úno 16:44  vi.mo
.rw-r--r--  85k root 11 úno 16:44  zh_CN.mo
.rw-r--r--  30k root 11 úno 16:44  zh_TW.mo

Seems old bug returns??
But I am not a programmer, have a little patience, please.

2 Likes

Of course, as I've mentioned in my first post, it's not really an issue that is breaking the system, I'm just curious why this happens and how to fix it. :slight_smile:

1 Like

Did you see
https://bbs.archlinux.org/viewtopic.php?id=165821

2 Likes

Post terminal output of

localectl
locale

Try specifying LANG=en at update-grub command

sudo LANG=en update-grub
# or
sudo LC_MESSAGES=en update-grub
5 Likes

Yes, I’ve read it.

╰─λ localectl
System Locale: LANG=en_US.UTF-8
LC_NUMERIC=cs_CZ.UTF-8
LC_TIME=cs_CZ.UTF-8
LC_MONETARY=cs_CZ.UTF-8
LC_PAPER=cs_CZ.UTF-8
LC_NAME=cs_CZ.UTF-8
LC_ADDRESS=cs_CZ.UTF-8
LC_TELEPHONE=cs_CZ.UTF-8
LC_MEASUREMENT=cs_CZ.UTF-8
LC_IDENTIFICATION=cs_CZ.UTF-8
VC Keymap: cz-lat2
X11 Layout: cz
╰─λ locale
LANG=cs_CZ.UTF-8
LC_CTYPE="cs_CZ.UTF-8"
LC_NUMERIC=cs_CZ.UTF-8
LC_TIME=cs_CZ.UTF-8
LC_COLLATE="cs_CZ.UTF-8"
LC_MONETARY=cs_CZ.UTF-8
LC_MESSAGES="cs_CZ.UTF-8"
LC_PAPER=cs_CZ.UTF-8
LC_NAME=cs_CZ.UTF-8
LC_ADDRESS=cs_CZ.UTF-8
LC_TELEPHONE=cs_CZ.UTF-8
LC_MEASUREMENT=cs_CZ.UTF-8
LC_IDENTIFICATION=cs_CZ.UTF-8
LC_ALL=

What about running grub with English language?
Test if this workaround works, so we know if we need to worry or it's a PEBCAK.

3 Likes

Sorry for the late reply, had lots of work to do.

The workaround you posted has worked. Thanks!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.