Bug 11168

Summary: Grub2 lists Mageia as Mageia Linux
Product: Mageia Reporter: claire robinson <eeeemail>
Component: RPM PackagesAssignee: Barry Jackson <zen25000>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: arnaud, ennael1, thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard: 4alpha2
Source RPM: grub2 CVE:
Status comment:
Attachments: grub menu from 4alpha3
grub menu from grub only install
grub2 boot menu with grub2-2.00-49
grub2 boot sub-menu with grub2-2.00-49
grub boot menu with grub2-2.00-49

Description claire robinson 2013-09-05 16:43:02 CEST
grub2 lists Mageia as Mageia Linux rather than just Mageia or Mageia $release




Reproducible: 

Steps to Reproduce:
claire robinson 2013-09-05 16:43:49 CEST

Whiteboard: (none) => 4alpha2

Comment 1 claire robinson 2013-09-05 18:02:32 CEST
Adding ISO people as this could be down to the installer & draklive.

After an install onto a dual boot system grub2 shows cauldron as Mageia Linux and mga3 as Mageia 3 (3), so it may be the way it is being added during install rather than grub2 itself.

CC: (none) => ennael1, thierry.vignaud, tmb

Comment 2 Barry Jackson 2013-09-05 18:29:52 CEST
Nothing changed AFAIK - it always shows the primary system as "Mageia Linux" (i.e. the system that generated the grub2 install).
I changed the default upstream in the spec to not display "Mageia GNU/Linux" right from the start in Mga3:

# Change "GNU/Linux" in menu selections to "Linux"
sed -i 's/GNU\/Linux/Linux/g' %{buildroot}%{_sysconfdir}/grub.d/10_linux

Other detected systems will be shown with version (but I think this could be better - it could also show maybe "... on /dev/sdx" although that's not ideal as device assignments are unreliable.
Comment 3 Barry Jackson 2013-09-29 16:28:15 CEST
Claire, can this be closed or am I missing the point ?

Grub also shows the primary system as "Mageia Linux".
Comment 4 claire robinson 2013-09-30 07:40:59 CEST
I think the latter probably Barry but I see what you mean. Mageia isn't called 'Mageia Linux' in the same way Mandriva was. Perhaps 'Linux' could be '(Linux)' or omitted or something instead?
Comment 5 Barry Jackson 2013-09-30 11:42:21 CEST
I see - so grub has been wrong from day one then.

I can probably hack grub2 to remove the "Linux" if neccessary, but in that case a similar bug should be raised against grub. (I'm guessing that would be a drakxtools issue, but I know very little about grub)
Comment 6 claire robinson 2013-09-30 14:09:07 CEST
I've not noticed grub1 list it that way Barry, maybe why it stood out in grub2.

Grub1 uses similar to this..

Mageia 3 (Official)
Mageia 4 (Cauldron)
Comment 7 claire robinson 2013-09-30 14:09:57 CEST
It's low priority though obviously.
Comment 8 Barry Jackson 2013-09-30 14:41:22 CEST
Created attachment 4391 [details]
grub menu from 4alpha3

See what I mean :)
Comment 9 claire robinson 2013-09-30 14:44:58 CEST
I've not seen it like that, I do see what you mean. I guess the installer is better at labelling grub1 than grub2 at the moment.

Was that installed with grub2 and urpmi grub?
Comment 10 Barry Jackson 2013-09-30 15:02:06 CEST
Originally installed grub2 and then used drakboot to switch to grub to check the menu. All default settings.
I don't think grub2 is influencing grub if that's where you're headed ;)
Comment 11 claire robinson 2013-09-30 15:04:24 CEST
No not at all, just never seen it list it that way. I've never swapped bootloader on an installed system though. When freshly installed it lists as in comment 6 with grub1 but differently with grub2.
Comment 12 Barry Jackson 2013-09-30 15:51:10 CEST
Created attachment 4393 [details]
grub menu from grub only install

Ah - now I see it.
Installing with only grub this is the menu. I don't thnk I have done that for a long time.
I installed with just grub and this is the menu.
I then installed grub2 manually and re-booted.
From grub2 boot I used drakboot to switch back to grub and grub menu stayed the same.
I then used drakboot to switch back to grub2 again and re-booted.
From grub2 boot I then used drakboot to switch to grub - BINGO!
The grub menu was re-written and it seems that it may be pulling the text from grub2. :0
Comment 13 Barry Jackson 2013-09-30 15:53:43 CEST
Correction - the first switch from grub2 back to grub was done manually at grub prompt.
Comment 14 claire robinson 2013-09-30 15:58:34 CEST
I'd never have got there :D

Confirm that when installed, meaning a fresh installation from the ISO, with grub1 it shows as your image in comment 12 but when installed with grub2 it shows as Mageia Linux.

Grub1 is still the default bootloader on the ISOs, not sure of the reason for that decision though.
Comment 15 Barry Jackson 2013-09-30 18:37:26 CEST
(In reply to claire robinson from comment #14)
> I'd never have got there :D
> 
> Confirm that when installed, meaning a fresh installation from the ISO, with
> grub1 it shows as your image in comment 12 but when installed with grub2 it
> shows as Mageia Linux.

 I would rather say "When selected in drakboot after previously using grub2"

I will alter a test grub2 package to exclude the "Linux" to confirm that this is actually being derived from grub2.
It seems odd that the grub2 grub.cfg would be parsed to generate the grub menu when there are routines to do this from scratch. However this may be an attempt to retain any custom entries already in grub2.
Comment 16 Barry Jackson 2013-10-05 13:47:11 CEST
Fixed in grub2-2.00-49.mga4
To see the change if updating run:
$ update-grub
Comment 17 Barry Jackson 2013-10-06 01:02:58 CEST
Created attachment 4409 [details]
grub2 boot menu with grub2-2.00-49
Comment 18 Barry Jackson 2013-10-06 01:04:04 CEST
Created attachment 4410 [details]
grub2 boot sub-menu with grub2-2.00-49
Comment 19 claire robinson 2013-10-06 01:06:59 CEST
Thanks Barry, this one can be closed now then.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 20 Barry Jackson 2013-10-06 01:07:48 CEST
Created attachment 4411 [details]
grub boot menu with grub2-2.00-49

This is the grub menu generated when drakboot is used to install or switch to grub from grub2-2.00-49.

Claire please test and close this if the fix is OK for you ;)
Comment 21 Barry Jackson 2013-10-06 01:08:54 CEST
Ah we crashed :)
Comment 22 claire robinson 2013-10-06 09:13:38 CEST
Oops sorry, I didn't realise you'd just done it. Was checking my mail on the way to bed.

I'm sure it's ok barry thanks, i'll reopen if it's still an issue in the beta.
Arnaud Vacquier 2013-10-12 11:33:51 CEST

CC: (none) => inster.css