Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142606 - Insufficient documation/parsing of initramfs command line.
Summary: Insufficient documation/parsing of initramfs command line.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-08-02 21:14 UTC by Christopher Byrne
Modified: 2006-10-23 09:04 UTC (History)
0 users

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


Attachments
Document "dolvm2" and "doevms2" in manpage (genkernel.8.diff,557 bytes, patch)
2006-08-06 16:29 UTC, Christopher Byrne
Details | Diff
Allow "root=" instead of "real_root=" for initramfs (linuxrc.diff,729 bytes, patch)
2006-08-06 16:33 UTC, Christopher Byrne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Byrne 2006-08-02 21:14:53 UTC
This is partially related to bug 99449.

The fact that you have to add "dolvm2" to get botting via genkernel to work is undocumented (either in the manpage or the Gentoo LVM2 HOWTO)

Also, the volume in question must be passed via "real_root", and not the "root" parameters as normal (real_root would seem to be deprecated for iniotramfs anyway, as the initramfs is transpartent, and no "pivot_root games" need to be played).

In other words, this has to be done:
kernel /kernel-genkernel-x86-2.6.17-gentoo-r4 real_root=/dev/Gentoo/root dolvm2
Instead of:
kernel /kernel-genkernel-x86-2.6.17-gentoo-r4 root=/dev/Gentoo/root dolvm2

Note the latter forms works with regular (/dev/hdax) volumes

A similar paralell probably exists for evm2, as well.

There are both http://gentoo-wiki.com/HOWTO_Install_Gentoo_on_an_LVM2_root_partition and lots of recent threads in the forums pointing to that, even though genkernel already has this capability; its just not documented!
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-06 13:08:34 UTC
Considering genkernel itself *tells* you that you need dolvm2 when you use --lvm2, I think this isn't as much of a "bug" as it is the user not reading the directions on-screen.  The LVM2 guide does not cover genkernel in any way, so a bug would need to be filed with the guide's maintainers to ask them to add genkernel information.

The man page does need a lot of work, as it is quite out of date.  Feel free to attach a patch for the man page and we'll get it updated.
Comment 2 Christopher Byrne 2006-08-06 16:29:46 UTC
Created attachment 93618 [details, diff]
Document "dolvm2" and "doevms2" in manpage

This patch isn't as asthetically pleasing as I'd hoped, but it gets the job done
Comment 3 Christopher Byrne 2006-08-06 16:33:46 UTC
Created attachment 93619 [details, diff]
Allow "root=" instead of "real_root=" for initramfs

Since the initramfs is transparent, root= can be used instead of real_root= (which is now what is recommended for regular volumes) this patch extends this to all kinds of volumes.

It tests for initrd by checking if REAL_ROOT is /dev/ram0 or not.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-23 09:04:47 UTC
Fixed in 3.4.3