generates grub.cfg with syntax error if GRUB_DISTRIBUTOR contains spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Medium
|
Colin Watson |
Bug Description
Binary package hint: grub-pc
Hi
I'm on Ubuntu Lucid, version of April 4th
Actually, despite Ubuntu doc, I cannot change anything in the "start menu" line corresponding to Lucid start.
I wanted to have the "start menu" looking like this: Ubuntu 10.04 Lucid, Linux 2.6.32 ….
instead of: Ubuntu , Linux 2.6.32 …. (with no version #, what kind of Ubuntu is it, 9.10 - 10.04?)
So, as the doc says, in /etc/default/grub, I replaced
GRUB_DISTRIBUTO
By
GRUB_DISTRIBUTO
Then : sudo update-grub
And reboot
Big surprise: in the start menu the only thing remaining was "Windows Seven"!! a shame!
I've tried to investigate and did the following:
As previously, I changed the line in /etc/default/grub, but I did not replace "–i –s", I just added "-r" to it
That means that if you change anything behind the "-" argument, grub is lost and displays NOTHING regarding the current version.
I did the same thing in Karmic, but it worked. Hope you can fix this
You really do want to keep the -s in there, otherwise the results will not be what you wanted.
There seems to be a problem with spaces in GRUB_DISTRIBUTOR; the wrong thing ends up passed to --class as a result.