Wrong "OS" Menu Entry names displayed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grub Customizer |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
30 minutes now that I was trying to change default boot option with Grub-customizer.
I just noticed why it did not worked : the entries G-U was giving to me did not correspond to the actual entry choices I had during boot.
What G-U displayed : (sorry it's in french but you should be ok)
> Ubuntu
> Option Avancées pour Ubuntu
> > Ubuntu, with Linux 5.3.0-40-lowlatency
> > Ubuntu, with Linux 5.3.0-40-lowlatency (recovery mode)
> > Linux Mint 19 Xfce, with Linux 4.19.94-40
> > Linux Mint 19 Xfce, with Linux 4.19.94-40 (recovery mode)
> > [Many other kernel choices]
> System Setup
Problem is, I am not on Ubuntu, but Linux Mint 19 Xfce.
And consequently, during boot the menu displays the following options :
> Linux Mint 19 Xfce
> Option Avancées pour Linux Mint 19 Xfce
> > Linux Mint 19 Xfce, with Linux 5.3.0-40-lowlatency
> > Linux Mint 19 Xfce, with Linux 5.3.0-40-lowlatency (recovery mode)
> > Linux Mint 19 Xfce, with Linux 4.19.94-40
> > Linux Mint 19 Xfce, with Linux 4.19.94-40 (recovery mode)
> > [Many other kernel choices]
> System Setup
It is also the result I get from a :
> grep "menuentry" /boot/grub/grub.cfg
First line of the results here is (just for illustration) : "menuentry 'Linux Mint 19 Xfce' --class ubuntu --class gnu-linux [...]"
This being noticed, I selected from drop down menu "Option Avancées pour Ubuntu>Ubuntu, with Linux 4.19.94-40", but the correct choice SHOULD be : "Option Avancées pour Linux Mint 19 Xfce>Linux Mint 19 Xfce, with Linux 4.19.94-40", that's why it was not working.
My conclusion is :
The parsing that is made to generate the menu entry list is not on the correct location, and should probably obtain such information from /boot/grub/
Where is actually made such parsing (which file ?), so that I could understand better or maybe find the issue on my system ?
Daniel
Grub Customizer runs grub-mkconfig and parses its output. Usually its output is the same as /boot/grub/ grub.cfg, but in some cases it may differ (especially when the file was edited by hand or when not up-to-date).
So first take a look at the output of this command (just run `sudo grub-mkconfig`. It wont change your system just printing the new config to your console). Check it for the correct os names.