Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521780 - sys-boot/grub-2.00_p5107-r2:2 : possibly other versions too, grub2-mkconfig not detecting initramfs files
Summary: sys-boot/grub-2.00_p5107-r2:2 : possibly other versions too, grub2-mkconfig n...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-30 21:37 UTC by Paige Thompson
Modified: 2014-08-31 00:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paige Thompson 2014-08-30 21:37:49 UTC
[ebuild   R    ] sys-boot/grub-2.00_p5107-r2:2  USE="device-mapper multislot nls -custom-cflags -debug -doc -efiemu (-libzfs) -mount -sdl -static {-test} -truetype" GRUB_PLATFORMS="pc -coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -qemu -qemu-mips -yeeloong" 0 kB

windowlicker ~ # ls /boot/
System.map-genkernel-debug-x86_64-3.16.1-gentoo-debug        kernel-genkernel-debug-x86_64-3.16.1-gentoo-debug
System.map-genkernel-recovery-x86_64-3.16.1-gentoo-recovery  kernel-genkernel-recovery-x86_64-3.16.1-gentoo-recovery
System.map-genkernel-vanilla-x86_64-3.16.1-gentoo-vanilla    kernel-genkernel-vanilla-x86_64-3.16.1-gentoo-vanilla
System.map-genkernel-x86_64-3.12.21-gentoo-r1                kernel-genkernel-x86_64-3.12.21-gentoo-r1
System.map-genkernel-x86_64-3.15.3-gentoo                    kernel-genkernel-x86_64-3.15.3-gentoo
System.map-genkernel-x86_64-3.15.5-gentoo                    kernel-genkernel-x86_64-3.15.5-gentoo
grub                                                         lost+found
initramfs-genkernel-debug-x86_64-3.16.1-gentoo-debug         xen-4.3.2.gz
initramfs-genkernel-recovery-x86_64-3.16.1-gentoo-recovery   xen-4.3.gz
initramfs-genkernel-vanilla-x86_64-3.16.1-gentoo-vanilla     xen-4.gz
initramfs-genkernel-x86_64-3.12.21-gentoo-r1                 xen-syms-4.3.2
initramfs-genkernel-x86_64-3.15.3-gentoo                     xen.gz
initramfs-genkernel-x86_64-3.15.5-gentoo
windowlicker ~ #

windowlicker ~ # grub2-mkconfig > /boot/grub/grub.cfg 
Generating grub.cfg ...
Found linux image: /boot/kernel-genkernel-x86_64-3.15.5-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-3.15.5-gentoo
Found linux image: /boot/kernel-genkernel-x86_64-3.15.3-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-3.15.3-gentoo
Found linux image: /boot/kernel-genkernel-x86_64-3.12.21-gentoo-r1
Found initrd image: /boot/initramfs-genkernel-x86_64-3.12.21-gentoo-r1
Found linux image: /boot/kernel-genkernel-vanilla-x86_64-3.16.1-gentoo-vanilla
Found linux image: /boot/kernel-genkernel-recovery-x86_64-3.16.1-gentoo-recovery
Found linux image: /boot/kernel-genkernel-debug-x86_64-3.16.1-gentoo-debug
done
windowlicker ~ # 


It did not detect the following:
initramfs-genkernel-debug-x86_64-3.16.1-gentoo-debug
initramfs-genkernel-recovery-x86_64-3.16.1-gentoo-recovery
initramfs-genkernel-vanilla-x86_64-3.16.1-gentoo-vanilla

possibly due to the naming, which is being done with both KNAME in the genkernel.conf and with (General setup -> () Local version - append to kernel release):

This seems related: 

https://bugs.gentoo.org/show_bug.cgi?id=521774


Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2014-08-31 00:18:50 UTC
It seems silly to build-in in support for every possible way you could name your kernel.

If you want to use crazy names, then write your own menu entries for them.
Comment 2 Paige Thompson 2014-08-31 00:24:43 UTC
Hi there! 

well actually those "crazy" names are genkernel's doing. Seems to suggest they're not so crazy, but ok! I'll cross reference this from the other bug because I kind of agree, genkernel's way of handling the KNAME is kinda wrong.
Comment 3 Mike Gilbert gentoo-dev 2014-08-31 00:38:13 UTC
(In reply to Paige Thompson from comment #2)
> well actually those "crazy" names are genkernel's doing. Seems to suggest
> they're not so crazy, but ok! I'll cross reference this from the other bug
> because I kind of agree, genkernel's way of handling the KNAME is kinda
> wrong.

Frankly, I think genkernel is silly (or "crazy") for sticking "-genkernel-" in all the file names; we already have special code in /etc/grub.d/10_linux to deal with that.

If you still think there is a bug in the grub stuff after that genkernel bug gets resolved, feel free to reopen this.