Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66198 - genkernel: custom /linuxrc option?
Summary: genkernel: custom /linuxrc option?
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: 2004-10-03 04:27 UTC by Bardur Arantsson
Modified: 2004-11-30 11:41 UTC (History)
0 users

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


Attachments
adds --linuxrc argument to genkernel (genkernel-userlinuxrc.patch,1.99 KB, patch)
2004-11-09 19:03 UTC, David Bryson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bardur Arantsson 2004-10-03 04:27:10 UTC
Hi all,

This is just a small feature request: It would be a great help to those of us creating *really* customized LiveCD's (or USB sticks) using catalyst (or any other method, really) if one could specify the path to a custom /linuxrc script as an argument to genkernel instead of having to actually put it in /usr/share/genkernel/${ARCH}/linuxrc. A couple of reasons off the top of my head:

- It's currently very difficult to make a self-contained "build-a-default-kernel-with-custom-linuxrc" script without having to mess with the user's genkernel directory directly or having to modify the initrd after it's been built.

- Catalyst builds the kernel, initrd and everything else in a chroot and it seems one has to jump through all sorts of hoops to make it possible to use a custom /linuxrc. In the end, I just gave up and went for manually updating the initrd once it was built (a very tiresome producedure, btw, after having done it 100 times :)).

The only option I could find which seemed relevant would be --arch-override which could be used by copying the default files into a new directory and overwriting the linuxrc. But that seems like a bit of a hack to me.

It should be a *relatively* easy addition, but I'm not really comfortable enough with the genkernel code to offer a patch.

Cheers,
Comment 1 David Bryson (RETIRED) gentoo-dev 2004-11-09 19:03:43 UTC
Created attachment 43633 [details, diff]
adds --linuxrc argument to genkernel

This patch implements a user specified linuxrc.  I needed this patch for
myself, and just happened to run across this bug.  It applies to the sources
currently in cvs.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-11-30 11:41:12 UTC
Ok, patch in genkernel-3.0.2c, should reach rsync shortly. Please reopen this bug if you have any problems. Thanks!