manjaro / manjaro-settings-manager

This repo has been archived. Our code is now hosted at
https://gitlab.manjaro.org/
GNU General Public License v3.0
18 stars 19 forks source link

Windows bootmgr not detected #130

Open fhdk opened 6 years ago

fhdk commented 6 years ago

An old thread just got revived.

https://forum.manjaro.org/t/windows-entry-missing-from-grub-menu-after-kernel-update-with-msm/24075

My post of confirmation https://forum.manjaro.org/t/windows-entry-missing-from-grub-menu-after-kernel-update-with-msm/24075/19

I can confirm that during adding or removing of kernels using MSM the Windows Bootmgr is not included in grub.cfg.

It is however correctly included using

mhwd-kernel -i linux414

or

pacman -Syu linux414
scachemaille commented 6 years ago

I investigate about this. you can see my investigation here https://forum.manjaro.org/t/grub-and-kernel/39470/17?u=scachemaille

it seems that the update-grub process don't find os-prober when pacman is lunch by MSM.

100 is also related to this one.

and there is an other problem when the running kernel is updated. details in my forum post.

philmmanjaro commented 6 years ago

@Kirek: would it be a quick fix to add update-grub call after the kernel installation was processed? However, I think it get automatically called due to hooks. Maybe a dbus issue?

scachemaille commented 6 years ago

during my investigation I saw that: I just echoed the PATH environment variable inside /etc/grub.d/30_os-prober and it was echoed correctly but it seems it's not exported correctly as if I added export PATH in /etc/grub.d/30_os-prober code, it was working correctly.

philmmanjaro commented 6 years ago

@scachemaille: Try if grub(-quiet)-2.02.0-5 fixes the issue for you. Currently in unstable.

scachemaille commented 6 years ago

I tested on my VM with grub 2.02.0-5 as it seems grub-quiet-2.02.0-5 has not your patch. all seems to work it detected an other manjaro VM disk when I installed a new kernel with MSM.

philmmanjaro commented 6 years ago

both versions of grub have the patch. For the quiet version it is here: https://github.com/manjaro/packages-core/commit/bd40fb9bd45e40c0f66e5d1d0c8548e2c3cb6b53#diff-56990a6c3874b0cc7bf7f88ac1cd645aR11

scachemaille commented 6 years ago

ooh.. yes.. sorry.. I did not realized there was already a patch for the os_prober and that is was just modified. I was not finding the modification to actually use the patch. but it was already existing so..