1 |
Perhaps the modules-update could be extended to detect new kernels and warn |
2 |
users or automatically update modules. This could also be documented in |
3 |
Gentoo docs since this is a basic and common problem that almost every |
4 |
Gentoo user may have. |
5 |
|
6 |
Thanks for the patch! |
7 |
|
8 |
2005/10/19, John Myers <electronerd@××××××××××.com>: |
9 |
> |
10 |
> On Wednesday 19 October 2005 06:36, Henrik Brix Andersen wrote: |
11 |
> > On Wed, Oct 19, 2005 at 11:32:19AM -0200, Herbert G. Fischer wrote: |
12 |
> [snip] |
13 |
> > > - Patch kernel's "make" to warn at the end of "make modules_install" |
14 |
> [snip] |
15 |
> > I think you should check out sys-kernel/module-rebuild |
16 |
> Actually, a combination of these might not be a bad idea. |
17 |
> |
18 |
> Something like this (not tested): |
19 |
> |
20 |
> if [ -n "$(which module-rebuild 2>/dev/null)" ] ; then |
21 |
> if [ -n "${AUTO_MODULE_REBUILD}" ] ; then |
22 |
> echo "Rebuilding external modules:" |
23 |
> module-rebuild ${MODULE_REBUILD_OPTIONS} rebuild |
24 |
> else |
25 |
> echo "You might want to rebuild the following external modules:" |
26 |
> module-rebuild -XC list | tail -n +2 |
27 |
> echo |
28 |
> echo "You can use module-rebuild to do that." |
29 |
> echo "If you want to have your external modules automatically rebuilt" |
30 |
> echo "when making a kernel's modules_install target, set" |
31 |
> echo "AUTO_MODULE_REBUILD in your environment. You can set" |
32 |
> echo "MODULE_REBUILD_OPTIONS to options to pass to module-rebuild." |
33 |
> echo "(-X for example)" |
34 |
> fi |
35 |
> else |
36 |
> echo "You might want to emerge sys-kernel/module-rebuild to keep track of" |
37 |
> echo "kernel modules you've installed with emerge" |
38 |
> fi |
39 |
> |
40 |
> |
41 |
> |