Summary: | sys-boot/grub-2.00 grub2-mkconfig OOM and syntax error depending on locale | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alex Domingo <lexmingor> |
Component: | [OLD] Core system | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://savannah.gnu.org/bugs/index.php?36839 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | sys-boot/grub-2.00 patch that fixes quoting on some grub.d files |
Description
Alex Domingo
2012-07-12 21:39:17 UTC
emerge --info: http://pastebin.com/S9Z92Hxs > I'm opening the bug here and not upstream because I believe that the fix
> requires just a small modification of the /etc/grub.d/10_linux file.
It still needs to be fixed upstream, so please file a bug there.
Also, if you have a solution, please share it.
Created attachment 318080 [details, diff]
sys-boot/grub-2.00 patch that fixes quoting on some grub.d files
The easiest solution I could think of is just to change the quoting on the echo commands from single quotes to double quotes. The offending lines are like this one from /etc/grub.d/10_linux (number 137).
135 message="$(gettext_printf "Loading Linux %s ..." ${version})"
136 sed "s/^/$submenu_indentation/" << EOF
*137 echo '$message'
138 linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
I looked at the files inside util/grub.d/ in the source tarball. I found this kind of echo commands in 10_hurd.in, 10_kfreebsd.in, 10_linux.in and 20_linux_xen.in. So I wrote the attached patch to fix all this four files.
I'll fill a bug upstream also.
OK, bug opened upstream at https://savannah.gnu.org/bugs/index.php?36839 + 22 Jul 2012; Mike Gilbert <floppym@gentoo.org> + +files/grub-2.00-gettext_printf.patch, grub-2.00.ebuild, grub-9999.ebuild: + Fix problem with single quotes in translated messages in grub-mkconfig. Bug + 426364 by Alex Domingo. + |