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

Bug 105922

Summary: Kernel and initrd path in grub conf example code is wrong
Product: [OLD] Docs-user Reporter: Douglas Smith <douglas>
Component: HandbookAssignee: Docs Team <docs-team>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10
Whiteboard:
Package list:
Runtime testing required: ---

Description Douglas Smith 2005-09-13 21:44:54 UTC
I don't know if this is intentional, or I am missing something, but it seems  
that the kernel and initrd paths in the code listing 3 and 4, example grub  
confs in the handbook page:  
  
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10  
  
Are wrong.  At least they didn't work for me while following the install.  The  
paths read:  
  
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3  
  
and  
  
kernel /kernel-genkernel-x86-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc  
ramdisk=8192 real_root=/dev/hda3 udev  
initrd /initramfs-genkernel-x86-2.6.11-gentoo-r3  
  
But to make grub work for me they had to be:  
  
kernel /boot/kernel-2.6.11-gentoo-r3 root=/dev/hda3  
  
or:  
  
kernel /boot/kernel-genkernel-x86-2.6.11-gentoo-r3 root=/dev/ram0  
init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev  
initrd /boot/initramfs-genkernel-x86-2.6.11-gentoo-r3  
  
Unless I missed something in the install? 
 
Douglas 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Flammie Pirinen (RETIRED) gentoo-dev 2005-09-14 00:52:48 UTC
You are missing the fact that in handbook example there's a separate boot
partition in /dev/hda1, which is mounted at /boot/, so the path /kernel-.. does
point to correct kernel related to root directory of this partition. (ie.
(hd0,0)/kernel- points to /boot/kernel- when using the handbook's partitioning
model.)

Of course directory /boot/ should always have redundant symlink 'boot -> .', so
defining the kernel image always as /boot/kernel-... will work more often than
the example in current handbooks, but I don't know if this kind of symlink
trickery will confuse people, so I'll want another opinion before closing or
fixing anyways :-)
Comment 2 Shyam Mani (RETIRED) gentoo-dev 2005-09-22 22:51:30 UTC
trinity ~ # cat /boot/grub/grub.conf
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-gentoo
root (hd0,0)
kernel /vmlinuz-2.6.12-gentoo root=/dev/hda5 acpi=force vga=794

Works like a charm, followed the handbook, seperate /boot partition.

I'm marking this INVALID, reopen if you have more concrete info.