Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122672 - Adding a rootflags parameter for genkernel initramfs
Summary: Adding a rootflags parameter for genkernel initramfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-02-13 05:00 UTC by Olivier Tarnus
Modified: 2006-11-14 09:47 UTC (History)
0 users

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


Attachments
Patch for generic/linuxrc (linuxrc-real_rootflags.patch,938 bytes, patch)
2006-09-14 07:56 UTC, Tim Steiner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Tarnus 2006-02-13 05:00:40 UTC
Hi,

It would be great to had a new parameter that would be interpreted by the genkernel generated init script to handle the rootflags parameter. This actual kernel parameter permit to pass special options for mounting the root filesystem (for example an external log). Adding for example a real_rootflags parameter used when mounting the "real_root" would be great.

Thanks
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-13 07:12:48 UTC
Could you perhaps exaplin in more detail?  I'm not sure I am grasping what you are requesting.
Comment 2 Olivier Tarnus 2006-02-13 07:30:25 UTC
Take a look at this thread:

http://forums.gentoo.org/viewtopic-p-3107911.html

I think this will explain better what i mean...
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-09 07:29:43 UTC
And why wouldn't it work to just have the correct options in /etc/fstab?  It works fine for me.
Comment 4 Olivier Tarnus 2006-06-09 08:46:15 UTC
(In reply to comment #3)
> And why wouldn't it work to just have the correct options in /etc/fstab?  It
> works fine for me.
> 

Perhaps because when your root is not mounted, your fstab is not accessible???

This is ok for other mount point, but for your / this can't work in my opinion... Or perhaps genkernel embed the fstab in the initramfs, however this is not what the init script in the ramfs seems to do...
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-12 06:51:28 UTC
What I mean is the root filesystem is *remounted* during boot.  At this point, it uses the settings from the fstab.

Well, I've read over your thread on the forums and see where your problem is occurring.  If you're not building your root fileystem as a module, you don't need an initramfs, at all.  You can have genkernel not build one, you know.

Anyway, I'll look about adding a real_rootflags to a future genkernel.
Comment 6 Tim Steiner 2006-09-14 07:56:18 UTC
Created attachment 96974 [details, diff]
Patch for generic/linuxrc

This is a patch against the generic linuxrc script to add support for passing the real_rootflags boot parameter to the initial mount of the real root filesystem.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-13 11:30:35 UTC
I've added this to subversion, now... It should show up in 3.4.5 or better.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-11-14 09:47:54 UTC
Added to 3.4.5 which is about to hit the tree.