Summary: | sys-boot/grub-2.06-r9: grub-mkconfig generates wrong path for initramfs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joerg Schaible <joerg.schaible> |
Component: | Current packages | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | base-system |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Joerg Schaible
2023-11-04 17:24:23 UTC
The file 10_linux file shipped with grub-2.06-r9 contains this:
> initrd_real=
> for i in "initrd.img-${version}" "initrd-${version}.img" \
> "initrd-${alt_version}.img.old" "initrd-${version}.gz" \
> "initrd-${alt_version}.gz.old" "initrd-${version}" \
> "initramfs-${version}.img" "initramfs-${alt_version}.img.old" \
> "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
> "initrd-${alt_version}" "initramfs-${alt_version}.img" \
> "initramfs-genkernel-${version}" \
> "initramfs-genkernel-${alt_version}" \
> "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
> "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
> if test -e "${dirname}/${i}" ; then
> initrd_real="${i}"
> break
> fi
> done
${dirname} is not used when assigning initrd_real.
I think maybe you modified the file multiple times?
Strange. I'm not aware, that I touched this file before. And I had this also on another machine in the same way. However, both machines are very old installations (nearly ~20 years), continuously updated (or moved to new hardware). My oldest backup (4 years) already has this modification and it seems, dispatch-conf keeps that change silently. At least, I can tell, that in the beginning I had no genkernel... I'll remove the file, re-emerge grub and will report back. As you've reported, the unmodified file of the current grub version looks as you've reported, so this must have been a modification on my side done a LOT of years ago... |