opensuse and manjaro dual boot (in UEFI)

hi there after i install openssuse
i do

grub2-mkconfig -o /boot/efi/EFI/opensuse/grub.cfg

and it detect manjaro BUT when i boot to manjaro i get kernel panic.

if i use manjaro grub (and not opensuse grub) it boot ok to manjaro

anyone know why?

The following is the proper way to run that command:

grub2-mkconfig -o /boot/grub2/grub.cfg

“Know” - of course not with the amount of information you provided. “Guess” - yes, I do. Most likely this is related to multi-file initrd grub command used by Manjaro; when os-prober picks this line it strips off everything after the first file, this stripping off actual initrd.

Note that attempting to dual boot two Manjaro instances would likely result in the same issue. If not, I’m interested to see their os-prober patches …

thanks but still the same . the kernel panic that i get its

....VFS: unable to mount root fs...

and when i use manjaro grub (not opensue grub) its boot ok to manjaro

Hi
Could be a bug still in openSUSE os-prober.

If you boot into openSUSE and as root user run the command os-prober, does this show the other distribution?

Ref: https://bugzilla.suse.com/show_bug.cgi?id=1024196

Ooh, that was a mistake, as someone else has pointed out.

To fix that mistake, run:

shim-install

from a running opensuse. That will restore the original “/boot/efi/EFI/opensuse/grub.cfg”.

That should be a file that normally doesn’t change. The file to update is “/boot/grub2/grub.cfg”

After you have fixed that, try again to see whether opensuse boot menu works for manjaro.

I don’t know whether it will. But when you update “/boot/grub2/grub.cfg”, that normally looks at the boot configuration for manjaro and copies the important parts. I would guess your problem was that the initial “grub.cfg” was not configured right for manjaro, and by now I would hope that an updated “grub.cfg” would get it right.

i got

/dev/sdc2:Manjaro Linux (17.0.1):ManjaroLinux:linux

will check grub.cfg at both OS