|
From: | Drax |
Subject: | os-prober fails when multiple initrd images |
Date: | Wed, 19 Jul 2023 12:24:30 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
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
(whole grub.cfg attached)
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
grub.cfg
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |