Bug 18370 - [6sta1] grub-legacy identifies /boot/EFI partition as windows
Summary: [6sta1] grub-legacy identifies /boot/EFI partition as windows
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: 6sta1
Depends on:
Blocks:
 
Reported: 2016-05-05 12:00 CEST by Ben McMonagle
Modified: 2016-05-27 09:13 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
install report (199.15 KB, application/x-xz)
2016-05-05 12:02 CEST, Ben McMonagle
Details

Description Ben McMonagle 2016-05-05 12:00:48 CEST
Description of problem: I have a 5 HDD system. all HDD are SATA. 2 are GPT, one with a boot/EFI partition, 3 are MBR partition. after installation and reboot a "Windows" entry is in the graphical boot listing. the boot/EFI partition is identified as "windows" 
I have no "Windows" O/S on any partition -there is a VBox one 

GRUB-2 does not list any "windows" entry


Version-Release number of selected component (if applicable):
Mageia-6-sta1-i586-DVD.iso
DATE.txt: Tue May  3 12:34:47 CEST 2016


How reproducible:
everytime

Steps to Reproduce:
1.choose custom disk partitioning during installation of above .iso. 
2.create a GPT partition table HDD and create a set of Partition thus: boot/EFI, /swap, /, /home
3.choose grub-legacy at the configuration after installation.
4. note that partition [boot/EFI] is determined as a windows o/s 
5 reboot and choose "windows" from the boot menu
Ben McMonagle 2016-05-05 12:01:51 CEST

Keywords: (none) => 6sta1

Comment 1 Ben McMonagle 2016-05-05 12:02:29 CEST
Created attachment 7744 [details]
install report
Comment 2 Marja Van Waes 2016-05-07 10:36:21 CEST
It should not be possible to choose grub-legacy when doing an EFI-install.

However, seeing:

Steps to Reproduce:
1.choose custom disk partitioning during installation of above .iso. 
2.create a GPT partition table HDD and create a set of Partition thus: boot/EFI, /swap, /, /home
makes me think installer did not start in EFI-mode... AFAIK the partition should already have a GPT partition table before you start.

I cannot imagine the installer bootloader showed "UEFI" in the page title, like here: https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware#How_to_distinguish_between_UEFI_and_BIOS_mode_for_Mageia_boot_media

Also, at the beginning of stage1.log from your attached report, I do not see what I  think should be seen in EFI-installs:

* welcome to the Mageia install (mdk-stage1, version 6 built <date and time>)
* opening /proc/cmdline... 
* 	BOOT_IMAGE=/isolinux/x86_64/vmlinuz automatic=method:cdrom text noiswmd

but I see what I see in non-EFI installs:

* welcome to the Mageia install (mdk-stage1, version 6 built Apr 26 2016 07:23:11)
* opening /proc/cmdline...
*       automatic=method:cdrom initrd=i386/all.rdz automatic=method:cdrom vga=788  splash noiswmd quiet

CC: (none) => marja11

Comment 3 Ben McMonagle 2016-05-07 12:28:10 CEST
(In reply to Marja van Waes from comment #2)
> It should not be possible to choose grub-legacy when doing an EFI-install.
> 
> However, seeing:
> 
> Steps to Reproduce:
> 1.choose custom disk partitioning during installation of above .iso. 
> 2.create a GPT partition table HDD and create a set of Partition thus:
> boot/EFI, /swap, /, /home
> makes me think installer did not start in EFI-mode... AFAIK the partition
> should already have a GPT partition table before you start.
> 
> I cannot imagine the installer bootloader showed "UEFI" in the page title,
> like here:


This issue is apparent when installing from Mageia6-sta1 i586, so not UEFI.
I have a HDD GPT partitioned, with boot/EFI partition, which is identified as Windows when using grub-legacy install from the CSM booted i586 installer.

I had to explain how to reproduce the issue as best as I could, if the person assigned to investigate further did not already have a gpt partitioned HDD.
Comment 4 Marja Van Waes 2016-05-07 12:54:41 CEST
Sorry, Ben, I had overlooked the "i586" part :-[

This looks like a corner case to me, that was probably never addressed upstream. Am I wrong to assume that if anyone does a (32 or 64bit) non-EFI install to an EFI-capable system with an ESP, he is most likely an advanced user who won't get confused by grub identifying the ESP as windows? 

Anyway, assigning to all packagers collectively, since there is no maintainer for this package.

Assignee: bugsquad => pkg-bugs

Comment 5 Ben McMonagle 2016-05-19 09:57:15 CEST
Hello Marja,

I have just re-installed Mageia 5-i586 on my test system with Grub legacy.
Grub, in this case, does not present an existing /boot/EFI as "Windows", so it looks like change has been made in Mageia 6 Grub (partition type?) detection.

best regards
Comment 6 Ben McMonagle 2016-05-27 09:13:47 CEST
no longer valid

Mageia-6-sta1-x86_64-DVD.iso
DATE.txt: Fri May 20 15:16:56 CEST 2016

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


Note You need to log in before you can comment on or make changes to this bug.