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.
So... when does this need to run (after kernel, after initrd, in between)?
In between, I would say - the user may wish to include some of the external kernel modules in her initrd.
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.
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.
I don't think there's any interest for this functionality. If you're still interested, please reopen this bug and provide a patch.
Umm... *I* opened this damn bug. :P
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".