Gentoo Archives: gentoo-dev

From: "Herbert G. Fischer" <herbert.fischer@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade
Date: Wed, 19 Oct 2005 19:00:28
Message-Id: 9f90e8bf0510191158pc96100dl@mail.gmail.com
In Reply to: Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade by "Herbert G. Fischer"
1 Oops... sorry for the last e-mail. I confess that I did not read your
2 code-piece before answering. It's exactly what I had in mind (as you saw).
3
4 2005/10/19, Herbert G. Fischer <herbert.fischer@×××××.com>:
5 >
6 > Perhaps the modules-update could be extended to detect new kernels and
7 > warn users or automatically update modules. This could also be documented in
8 > Gentoo docs since this is a basic and common problem that almost every
9 > Gentoo user may have.
10 >
11 > Thanks for the patch!
12 >
13 > 2005/10/19, John Myers <electronerd@××××××××××.com>:
14 > >
15 > > On Wednesday 19 October 2005 06:36, Henrik Brix Andersen wrote:
16 > > > On Wed, Oct 19, 2005 at 11:32:19AM -0200, Herbert G. Fischer wrote:
17 > > [snip]
18 > > > > - Patch kernel's "make" to warn at the end of "make modules_install"
19 > >
20 > > [snip]
21 > > > I think you should check out sys-kernel/module-rebuild
22 > > Actually, a combination of these might not be a bad idea.
23 > >
24 > > Something like this (not tested):
25 > >
26 > > if [ -n "$(which module-rebuild 2>/dev/null)" ] ; then
27 > > if [ -n "${AUTO_MODULE_REBUILD}" ] ; then
28 > > echo "Rebuilding external modules:"
29 > > module-rebuild ${MODULE_REBUILD_OPTIONS} rebuild
30 > > else
31 > > echo "You might want to rebuild the following external modules:"
32 > > module-rebuild -XC list | tail -n +2
33 > > echo
34 > > echo "You can use module-rebuild to do that."
35 > > echo "If you want to have your external modules automatically rebuilt"
36 > > echo "when making a kernel's modules_install target, set"
37 > > echo "AUTO_MODULE_REBUILD in your environment. You can set"
38 > > echo "MODULE_REBUILD_OPTIONS to options to pass to module-rebuild."
39 > > echo "(-X for example)"
40 > > fi
41 > > else
42 > > echo "You might want to emerge sys-kernel/module-rebuild to keep track
43 > > of"
44 > > echo "kernel modules you've installed with emerge"
45 > > fi
46 > >
47 > >
48 > >
49 >

Replies

Subject Author
Re: [gentoo-dev] Suggestion: ebuilds linked to kernel upgrade John Mylchreest <johnm@g.o>