[Bug 1995991] [NEW] /etc/grub.d/30_os-prober creates broken initrd entries if there are several .img
Andrey G.
1995991 at bugs.launchpad.net
Tue Nov 8 21:38:18 UTC 2022
Public bug reported:
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.
** Affects: grub2 (Ubuntu)
Importance: Undecided
Status: New
--
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:
New
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