Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55376 - Genkernel initrd doesn't allow passing an argument to init
Summary: Genkernel initrd doesn't allow passing an argument to init
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
: 54650 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-27 17:49 UTC by Nahum Shalman
Modified: 2004-07-12 14:28 UTC (History)
1 user (show)

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


Attachments
This patch enables the real_init variable (linuxrc.patch,599 bytes, patch)
2004-06-27 17:53 UTC, Nahum Shalman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nahum Shalman 2004-06-27 17:49:25 UTC
I decided to set up additional runlevels properly configured in inittab so that I could boot right into them via additional grub entries (one for wireless, one for going right to single-user).  But genkernel's initrd has a use for the init commandline value and doesn't pass anything through to the system's init.

Reproducible: Always
Steps to Reproduce:
1.use genkernel
2.try to talk to init from grub
3.

Actual Results:  
can't do it 

Expected Results:  
should do it 

So, being resourceful I hacked genkernel to make a solution.  Similar to the 
real_root value I created a real_init value which gets passed on to init.
Comment 1 Nahum Shalman 2004-06-27 17:53:09 UTC
Created attachment 34311 [details, diff]
This patch enables the real_init variable

I was surprised that more people didn't want to pass stuff to init.
There may be a more elegant way of doing this, but this seemed right.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-07-03 13:14:17 UTC
*** Bug 54650 has been marked as a duplicate of this bug. ***
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-07-12 14:28:05 UTC
Now fixed with genkernel 3.0.2c, it should reach Portage within an hour. Thanks!