> 2005/10/19, Herbert G. Fischer <[EMAIL PROTECTED]>:
> Perhaps the modules-update could be extended to detect new
> kernels and warn users or automatically update modules. This
> could also be documented in Gentoo docs since this is a basic
> and common problem that almost every Gentoo user may have.
module-rebuild shouldn't really have this task. it isn't the right place
to do it. It will of course quite happily do what you need it to do,
rebuild anything which installs a kernel module from portage.
>
> 2005/10/19, John Myers <[EMAIL PROTECTED]>
> if [ -n "$(which module-rebuild 2>/dev/null)" ] ;
> then
> if [ -n "${AUTO_MODULE_REBUILD}" ] ; then
> echo "Rebuilding external modules:"
> module-rebuild ${MODULE_REBUILD_OPTIONS}
> rebuild
> else
> echo "You might want to rebuild the following
> external modules:"
> module-rebuild -XC list | tail -n +2
> echo
> echo "You can use module-rebuild to do that."
> echo "If you want to have your external
> modules automatically rebuilt"
> echo "when making a kernel's modules_install
> target, set"
> echo "AUTO_MODULE_REBUILD in your environment.
> You can set"
> echo "MODULE_REBUILD_OPTIONS to options to
> pass to module-rebuild."
> echo "(-X for example)"
> fi
> else
> echo "You might want to emerge
> sys-kernel/module-rebuild to keep track of"
> echo "kernel modules you've installed with
> emerge"
> fi
>
I don't particular feel comfortable doing this. the only place I can
actually see this being of some use is with the pkg_config since an
ebuild postinst is far too soon, and patching up Kbuild to do this is
far too intrusive (let alone high maintenance).
A possibility (although I wouldnt like to promote it through portage)
would be to have a wrapper/helper script which would do all of this for
you. build-kernel or some such. But then... whats genkernel for right?
- John
--
Role: Gentoo Linux Kernel Lead
Gentoo Linux: http://www.gentoo.org
Public Key: gpg --recv-keys 9C745515
Key fingerprint: A0AF F3C8 D699 A05A EC5C 24F7 95AA 241D 9C74 5515
Web:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9C745515
--
[email protected] mailing list