[Bug 1995991] Re: /etc/grub.d/30_os-prober creates broken initrd entries if there are several .img
Marcel G
1995991 at bugs.launchpad.net
Sat Jun 17 16:29:03 UTC 2023
Also getting affected by this. Looks like an easy fix, submitted a patch. It's my first time, so please let me know if there's anything wrong with my submission.
Thanks.
** Patch added: "30_os-prober.patch"
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1995991/+attachment/5680410/+files/30_os-prober.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1995991
Title:
/etc/grub.d/30_os-prober creates broken initrd entries if there are
several .img
Status in grub2 package in Ubuntu:
Confirmed
Bug description:
Ubuntu /etc/grub.d/30_os-prober creates broken initrd entries if there
are more than one *.img: they are separated by ^ instead of space. As
a result Ubuntu Grub fails to dual-boot Manjaro and the likes.
The type of broken /boot/grub/grub.cfg entry it creates:
initrd /boot/amd-ucode.img^/boot/initramfs-5.15-x86_64.img
Should be:
initrd /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Cause of error: /etc/grub.d/30_os-prober, line 255:
LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
Should be:
LINITRD="`echo ${LINUX} | cut -d ':' -f 5 | tr '^' ' '`"
(earlier in the script spaces are replaced by ^, here forgotten to
reverse)
This is already fixed in e.g. Manjaro.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1995991/+subscriptions
More information about the foundations-bugs
mailing list