Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360261 - inforrmation regarding grub/genkernel contains cruft
Summary: inforrmation regarding grub/genkernel contains cruft
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 11:51 UTC by Xake
Modified: 2011-04-14 10:07 UTC (History)
0 users

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 Xake 2011-03-24 11:51:13 UTC
Since genkernel uses initramfs nowdays (and has done for quite some time now) there is really no need for some stuff from the examples in the handbook.

we have for example:
---
title Gentoo Linux 2.6.34-r1
root (hd0,0)
kernel /boot/kernel-genkernel-amd64-2.6.34-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-amd64-2.6.34-gentoo-r1
---
Which really should be:
---
title Gentoo Linux 2.6.34-r1
root (hd0,0)
kernel /boot/kernel-genkernel-amd64-2.6.34-gentoo-r1 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-amd64-2.6.34-gentoo-r1
---

Why?
The only two reasons for the "root=/dev/ram0 init=/linuxrc ramdisk=8192" with kernel 2.6 I could find are if you are using a initrd, which is discouraged by kernel devs which will point towards the use of a initramfs which also is what genkernel creates, or if you want to not use /init or /sbin/init as the ramsdisk init, in which case kernel devs will point you towards "rdinit=".

The removal of those parameters will not break anything as all those things are stuff the kernel already does by default with a initramfs.

Also I would suggest use "root=" instead of "real_root" because as long as REAL_ROOT is not set, CDROOT is not set, and "root=" is not pointing towards /dev/ram0 then genkernel will use "root=".
That would simplify the documentation, and leave confusing stuff to documentation covering those corner cases where it is needed.
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2011-04-14 09:33:04 UTC
You're right, these options are not needed anymore. Thanks, I've fixed that in CVS.
Comment 2 Xake 2011-04-14 10:07:54 UTC
If you want to simplify it even more, you can change it to "root=" instead of "real_root=", which works perfectly fine with genkernel.
Really, "real_root=" only makes sense if you need root to point towards the ramdisk.


So currently the only needed deviance between the two grub examples in the handbook should be that one does not contain a initrd-line, the other does.



I am currently working on having the same logic apply to init=, so my hopes is that in the end genkernel should behave just like the kernel documentation states (i.e. rdinit= specifies the init for the ramdisk, root= specifies the root for the to be root, and init= specifies the init to be used in said root=), however the patch for init= has not been merged upstream yet.