Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506782 - sys-boot/grub:2 prints 'error: file '/boot/grub/locale/$FOO.gmo' not found' before showing boot menu.
Summary: sys-boot/grub:2 prints 'error: file '/boot/grub/locale/$FOO.gmo' not found' b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL: http://git.savannah.gnu.org/cgit/grub...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-05 03:26 UTC by Carter Young
Modified: 2023-07-10 01:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
grub.cfg (grub.cfg.txt,5.07 KB, text/plain)
2023-07-09 22:30 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carter Young 2014-04-05 03:26:45 UTC
Grub 2 complains of a missing file error.  The error took me forever to track down as the system still boots normally, and so fast on my system that the error is almost unreadable.  After some investigation, I found the same issue in Arch at: https://bbs.archlinux.org/viewtopic.php?id=165821.  I followed the suggestion in post #5, and the error disappeared.  Further down the post (#17) refers to an available fix.  In keeping with localization standards, I'd rather see our ebuild copy the file as in post #5, but as I'm not the maintainer, the choice is ultimately his

Reproducible: Always

Steps to Reproduce:
1. Watch the boot Sequence, using i386-pc as the platform 
2. The error message goes by quick.
3.
Actual Results:  
An error message prints, complaining of a missing file

Expected Results:  
The error message should not print.

I used/test the fix in post #5 above and the error was fixed.  Please update the ebuild and recommit
Comment 1 Carter Young 2014-04-05 03:29:49 UTC
TRied posting 2 URL's in URL text box, and relized I couldn't.  Depending on maintainer's choice here is the URL to the other fix:

http://git.savannah.gnu.org/cgit/grub.git/commit/?id=6cd660435ec32266db31e2fe65fbc3997379cbd2
Comment 2 Mike Gilbert gentoo-dev 2014-04-05 15:45:33 UTC
What version of grub are you using?

6cd660435ec32266db31e2fe65fbc3997379cbd2 should be included in grub-2.02_beta2.
Comment 3 Carter Young 2014-04-05 22:30:24 UTC
(In reply to Mike Gilbert from comment #2)
> What version of grub are you using?
> 
> 6cd660435ec32266db31e2fe65fbc3997379cbd2 should be included in
> grub-2.02_beta2.

sys-boot/grub-2.00_p5107-r2... I'll try the update... just switched to systemd,,,
Comment 4 Darragh Bailey 2014-06-08 18:53:11 UTC
Error still exists with 2.02_beta2.

The appearance of the following three lines in grub.cfg is what triggers it for me.

  set locale_dir=$prefix/locale
  set lang=en_IE
  insmod gettext


Setting LANG=en in /etc/default/grub solves the problem for me since that is what the fix in grub is specifically checking for.

So if the default config has this set it would avoid the problem for people that are using other english locales and don't need to override, and then work on including the localization files in the install for other locales.
Comment 5 Mike Gilbert gentoo-dev 2014-06-08 19:28:27 UTC
(In reply to Darragh Bailey from comment #4)

I am unable to reproduce the problem with grub-2.02_beta2. Perhaps you forgot to run grub2-install.
Comment 6 Martin Mokrejš 2023-07-09 22:30:02 UTC
Created attachment 865318 [details]
grub.cfg
Comment 7 Martin Mokrejš 2023-07-09 22:31:51 UTC
Comment on attachment 865318 [details]
grub.cfg

Sorry, was intended for bug #910170 , I cannot delete Attachments.