Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 161376

Summary: genkernel-3.4.6 doesn't name correctly the initramfs file in grub.conf
Product: Gentoo Linux Reporter: Jimmy.Jazz
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jimmy.Jazz 2007-01-10 19:15:14 UTC
example for kernel 2.6.19-gentoo-r3.
initramfs in cache directory is named initramfs-2.6.19-gentoo-r3
also, in grub.conf
initrd /initramfs-genkernel-x86_64-2.6.19-gentoo-r3
should be written
initrd /initramfs-2.6.19-gentoo-r3


Reproducible: Always

Steps to Reproduce:
1. genkernel --no-install --no-clean --evms2 --kerneldir=/usr/src/linux all
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-10 19:16:27 UTC
No, it shouldn't. The name is correct.
Comment 2 Jimmy.Jazz 2007-01-10 22:21:56 UTC
(In reply to comment #1)
> No, it shouldn't. The name is correct.
> 

If i'm right, --no-install does not install the files in /boot.
genkernel modifies grub.conf if /boot is accessible and let the user the choice to copy them manually from the cache directory to /boot.
Next reboot the box will not be able to boot again. Grub will not find the initrd file in /boot because both names are not identical (in grub and in the /boot directory)

The idea would be to give identical name to the files in the cache directory and  their equivalent in grub.conf in order to avoid confusion.

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-01-10 22:53:18 UTC
genkernel doesn't touch grub.conf at all unless you call it w/ --bootloader=grub; if you do then I fail to see what's the point of using --no-install at the same time.
Comment 4 Jimmy.Jazz 2007-01-11 09:14:46 UTC
(In reply to comment #3)
> genkernel doesn't touch grub.conf at all unless you call it w/
> --bootloader=grub; 

yes i set it  in /etc/genkernel.conf.

if you do then I fail to see what's the point of using
> --no-install at the same time.
> 

Not enough room in /boot for instance

The program would be more coherent at least form the user's point of view. All the files in CACHE_DIR have an genkernel-XYZ extension except for the file initramfs-XXX.

I did not intend to annoy you with that. Just my 2c.