bugGNU GRUB - Bugs: bug #64448, os-prober fails when initrd...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64448: os-prober fails when initrd contains multiple images

Submitter:  Aeron Draxar <drax>
Submitted:  Wed 19 Jul 2023 10:46:25 AM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Aeron Draxar
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Wed 19 Jul 2023 10:46:25 AM UTC, original submission:  

OS prober fails when the target OS has a separate boot partition and multiple initrd images.

I have both Debian and Manjaro installed on my laptop. When using Debian's update-grub, I get a grub.cfg with a wrong path for Manjaro's initramfs.

It should be:
linux /vmlinuz ...
initrd /intel-ucode.img /initramfs-6.4-x86_64.img

but instead I get:
linux /vmlinuz ...
initrd /intel-ucode.img /boot/initramfs-6.4-x86_64.img


Upon looking at grub.d/30_os-prober.in (line #226), it appears the script only removes the first occurrence of /boot, so the next image has a wrong path.

(util/grub.d/30_os-prober.in #226)
LINITRD="${LINITRD#/boot}"

Suggestion, something like:

LINITRD="$(echo "$LINITRD" | sed -re 's+(^| )/boot+\1+g')"


Kind regards,
Aeron Draxar

Aeron Draxar <drax>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #54940:  grub.cfg added by drax (9KiB - application/octet-stream - error at line #185)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by drax (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-19 drax Attached File- Added grub.cfg, #54940

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code