[Bug 1995991] Re: /etc/grub.d/30_os-prober creates broken initrd entries if there are several .img

Ubuntu Foundations Team Bug Bot 1995991 at bugs.launchpad.net
Sat Jun 17 20:13:18 UTC 2023


The attachment "30_os-prober.patch" seems to be a patch.  If it isn't,
please remove the "patch" flag from the attachment, remove the "patch"
tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the
team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: 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