Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109941 - Request: --autorebuild option for external modules
Summary: Request: --autorebuild option for external modules
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 11:59 UTC by Chris Gianelloni (RETIRED)
Modified: 2015-06-11 16:05 UTC (History)
3 users (show)

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 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-20 11:59:32 UTC
This would add a runtime-dependency on sys-kernel/module-rebuild, but I think
this would be a valuable addition.  Basically, genkenrel would call a
module-rebuild when run with --autorebuild (or whatever).

From: 	John Mylchreest <johnm@gentoo.org>
Reply-To: 	gentoo-dev@lists.gentoo.org
To: 	gentoo-dev@lists.gentoo.org
Subject: 	Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade
Date: 	Thu, 20 Oct 2005 18:19:32 +0100  (13:19 EDT)


On Wed, 2005-10-19 at 17:31 -0400, Chris Gianelloni wrote:
> Actually, genkernel does have the --callback option, which runs an
> external command before finalizing the build.  We use it for building
> external modules and packages that require a configured kernel when
> building the releases, but I think adding an option to genkernel
> wouldn't be bad to do this for you.  We could add a command-line switch
> to genkernel to automatically rebuild any external modules after it has
> built the kernel.  We could use something like --autorebuild.  You could
> then do something like "genkernel --autorebuild all" to build your new
> kernel and automatically rebuild all of your external modules.

My thoughts exactly. And I'm sure a welcome addition.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2006-01-02 13:42:50 UTC
So... when does this need to run (after kernel, after initrd, in between)? 
Comment 2 Henrik Brix Andersen 2006-01-02 13:54:17 UTC
In between, I would say - the user may wish to include some of the external kernel modules in her initrd.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-03 03:45:31 UTC
It would be in between.  Though we do not include any external modules by default in the initrd, as Brix said, someone could be doing their own initrd.
Comment 4 Eddy Mulyono 2006-08-17 09:22:12 UTC
I've been doing this with --callback='module-rebuild rebuild', and it works well for me.

Unfortunately, on systems where moduledb is empty, `module-rebuild rebuild` returns a non-zero exit code, which aborts genkernel.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-17 03:23:42 UTC
I don't think there's any interest for this functionality. If you're still interested, please reopen this bug and provide a patch.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-20 19:51:32 UTC
Umm... *I* opened this damn bug.  :P
Comment 7 Alex Xu (Hello71) 2015-06-11 16:05:39 UTC
genkernel still does not have --autorebuild or similar, but emerge @module-rebuild returns 0, so I think "genkernel --callback='emerge @module-rebuild'" is "good enough".