Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1347273 - There is no Windows entry in grub after installation to dual boot
Summary: There is no Windows entry in grub after installation to dual boot
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: os-prober
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Hedayat Vatankhah
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: https://fedoraproject.org/wiki/Common...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-16 12:29 UTC by Petr Schindler
Modified: 2018-02-05 10:27 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 14:52:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
anaconda/program.log (128.86 KB, text/plain)
2016-06-16 12:31 UTC, Petr Schindler
no flags Details
/tmp/*.log and output of journal -a (2.79 MB, application/x-tar)
2016-06-23 12:46 UTC, Petr Schindler
no flags Details
/tmp/*.log and output of journal -a (2.79 MB, application/x-tar)
2016-06-23 12:49 UTC, Petr Schindler
no flags Details
os-prober log (34.06 KB, text/x-vhdl)
2017-07-19 11:59 UTC, cornel panceac
no flags Details

Description Petr Schindler 2016-06-16 12:29:48 UTC
Description of problem:
I installed Windows 10 on my computer (in UEFI). During installation I left some space for Fedora installation. Then I installed Fedora to empty space (also in UEFI). After reboot there is no Windows entry in grub menu. I can still boot windows from boot menu (efi entry is there).


I have another computer where I got another result following the same steps (On that computer there is windows entry in grub, but it doesn't work: it writes message relocation failed, I'll fill this bug next).


Version-Release number of selected component (if applicable):
grub2-2.02-0.34.fc24.x86_64
I used Workstation Live RC 1.2

How reproducible:
I tried this 3 times (once with Server DVD) and happened everytime on this particular computer.

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
I propose this as a blocker as it violates the criterion: "The installer must be able to install into free space alongside an existing clean Windows installation and install a bootloader which can boot into both Windows and Fedora."

Comment 1 Petr Schindler 2016-06-16 12:31:05 UTC
Created attachment 1168719 [details]
anaconda/program.log

Comment 2 Petr Schindler 2016-06-16 14:21:12 UTC
Well, I test this on a computer where the RAID 5 was set (with firmware raid). While I followed those steps with raid disk this bug happens, I don't get a Windows entry. So I tried to destroy raid and use normal disks instead. And guess what? It works now.

I followed the steps in description and after installation of Fedora there is Windows grub entry and it works. I'm not sure if it isn't just a coincidence, but it works sometime on some conditions. So I'm now more -1 blocker.

Comment 3 Adam Williamson 2016-06-16 17:09:04 UTC
os-prober does the other OS detection, so this bug is most likely there. I didn't have time to try and reproduce this yet.

Comment 4 Geoffrey Marr 2016-06-16 18:39:41 UTC
Discussed during the 2016-06-14 Go/No-Go #2 meeting: [1]

The decision was made to not classify this bug as a blocker as there are other mechanisms (firmware boot) for getting around this bug. This plus the fact that this bug surrounds hardware RAID implementations only, we have reached this conclusion.


[1] https://meetbot.fedoraproject.org/fedora-meeting-2/2016-06-16/f24-final-go_no_go-meeting.2016-06-16-17.00.txt

Comment 5 Geoffrey Marr 2016-06-16 18:40:16 UTC
Correction to above comment, the meeting was hosted on 2016-06-16.

Comment 6 Hedayat Vatankhah 2016-06-16 20:25:22 UTC
Other installer logs are also needed (actually, the syslog logs is needed).
Also, if you have access to an installed system with that problem, please run os-prober and give its output.

Comment 7 Petr Schindler 2016-06-23 12:46:30 UTC
Created attachment 1171464 [details]
/tmp/*.log and output of journal -a

Also this bug really happens just when uefi is used. When the systems are installed on BIOS it works fine.

Comment 8 Petr Schindler 2016-06-23 12:49:39 UTC
Created attachment 1171465 [details]
/tmp/*.log and output of journal -a

Also this bug really happens just when uefi is used. When the systems are installed on BIOS it works fine.

Also I tried to run os-prober and here is the output:
#os-prober
/dev/mapper/fedora_dhcp--2--216-root:Fedora release 24 (Twenty Four):Fedora:linux

Comment 9 niemand 2016-12-12 19:07:17 UTC
> Petr Schindler 2016-06-23 08:49 EDT
> 
> Also this bug really happens just when uefi is used. When the systems are
> installed on BIOS it works fine.

In other words, to be "politically" correct, this bug appears when UEFI BIOS is used as true UEFI (CSM = OFF). When Legacy mode is used (CSM = ON), this bug does not appear/GRUB2 works correctly.

_nobody_

Comment 10 cornel panceac 2017-07-12 10:02:19 UTC
Maybe it's a different bug, but my Fedora 26 does not add Centos 7 to the boot menu. It does add however, windows 10 and debian 9 and ubuntu 1604.

Comment 11 Hedayat Vatankhah 2017-07-12 20:40:20 UTC
Sorry for the silence, I'll come to this bug soon.
But, @cornel, this bug is really about the issue with Windows, so it is likely that it is a different bug. Please provide installer logs and/or run os-prober and see if it finds CentOS or not.

Comment 12 cornel panceac 2017-07-13 07:18:08 UTC
A few things need to be clarified. I don;t remember if the installer found Centos or not, because: after installing Fedora, i've also installed ubuntu, debian and centos so the boot manager was replaced. Then, when i wanted to put Fedora's grub back, i'e found there was not grub.cfg and i had only one empty grub shell to play with. then i ran grub2-mkconfig and recreated grub.cfg and then i've seen Centos is missing.

os-prober is not finding Centos.
On a different system, grub2-mkconfig | grep -i centos shows centos even if os-prober is not seeing it. but that is a different setup. (this happens both before and after upgrading from f25 to f26.). 
I don't see installer logs in /root.

Comment 13 Hedayat Vatankhah 2017-07-15 20:11:43 UTC
@Petr Schindler: excuse me, do you have still access to that system? I need some info, mainly the output of following command: 
udevadm info -q path -n /dev/md126p2

And, is md126p2 your EFI partition?! It seems so!

@cornel panceac: Do you also have a RAID or LVM setup? If not, you probably need to fill a new bug. As os-prober doesn't find your CentOS, please run this command in a shell:
journalctl -lf > osprober.log

Then, in another shell run os-prober. When finished, use Ctrl+C to terminate the journalctl command in the other shell and send your osprober.log in your bug report.

Comment 14 Hedayat Vatankhah 2017-07-15 20:13:30 UTC
@Peter: please also give me the output of the following command:
udevadm info -q property -n /dev/md126p2 | grep -E '^ID_PART_ENTRY_(TYPE|SCHEME)='

Comment 15 cornel panceac 2017-07-19 11:58:53 UTC
ok, it definitely looks like a different bug. Centos 7 /boot is in /dev/sda9 .
in the log i can see:

$ cat osprober.log | grep sda9
iul 19 11:46:03 localhost.localdomain cornel[3173]: os-prober: debug: running /usr/libexec/os-probes/50mounted-tests on /dev/sda9
iul 19 11:46:03 localhost.localdomain cornel[3173]: 50mounted-tests: debug: creating device mapper device /dev/mapper/osprober-linux-sda9
iul 19 11:46:03 localhost.localdomain cornel[3173]: 05efi: debug: /dev/sda9 is xfs partition: exiting
...
iul 19 11:46:03 localhost.localdomain cornel[3173]: 50mounted-tests: debug: remove device mapper device /dev/mapper/osprober-linux-sda9

For whatever reason os-prober doesn't care about XFS. However, xfsprogs is installed:

$ rpm -q xfsprogs
xfsprogs-4.10.0-1.fc26.x86_64

Comment 16 cornel panceac 2017-07-19 11:59:22 UTC
Created attachment 1301041 [details]
os-prober log

Comment 17 Fedora End Of Life 2017-07-25 21:06:48 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 18 Hedayat Vatankhah 2017-07-25 21:17:03 UTC
@cornel: what is your CentOS 7 / partition? /boot is not enough. And if your CentOS 7 / partition is encrypted (and not unlocked when you run os-prober), os-prober won't find it.

Comment 19 cornel panceac 2017-07-31 11:32:24 UTC
(In reply to Hedayat Vatankhah from comment #18)

Even if /dev/dm-5 (c7-root) is mounted, it is still not added by grub2-mkconfig.
In the new os-prober log, 'dm' does not even appear.

Comment 20 Hedayat Vatankhah 2017-07-31 20:59:46 UTC
Please open a separate bug with the logs when CentOS partition is unlocked (I don't remember if it is allowed to be also mounted, but preferably give the log when CentOS / partition is unlocked but not mounted. )

Comment 21 Fedora End Of Life 2017-08-08 14:52:13 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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