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

Launchpad Bug Tracker 1995991 at bugs.launchpad.net
Sat Jun 17 16:13:01 UTC 2023


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub2 (Ubuntu)
       Status: New => Confirmed

-- 
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