* [gentoo-user] What is the proper usage of module_rebuild?
@ 2011-05-16 13:20 felix
2011-05-16 14:49 ` Alan McKinnon
2011-05-17 13:37 ` Alex Schuster
0 siblings, 2 replies; 5+ messages in thread
From: felix @ 2011-05-16 13:20 UTC (permalink / raw
To: gentoo-user
I have an ancient emerge script which does this:
rm -rf /var/lib/module-rebuild
module-rebuild -C list
and I do not know why -- did I dream this up myself, or did I inherit
it from somewhere? I do not know.
At any rate, it seems kind of odd. What is the proper way of using
module_rebuild? It seems to me there are two cases, and maybe that
is why this script has this odd code. If you have just built a brand
new kernel, you might want to rebuild the module list from scratch.
But once you have done that, future emerges only need to keep the
module list up to date.
And then I realized I don't even know what the module list actually
is.
Please enlighten me :-O
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] What is the proper usage of module_rebuild?
2011-05-16 13:20 [gentoo-user] What is the proper usage of module_rebuild? felix
@ 2011-05-16 14:49 ` Alan McKinnon
2011-05-16 14:59 ` felix
2011-05-17 13:37 ` Alex Schuster
1 sibling, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2011-05-16 14:49 UTC (permalink / raw
To: gentoo-user; +Cc: felix
Apparently, though unproven, at 15:20 on Monday 16 May 2011, felix@crowfix.com
did opine thusly:
> I have an ancient emerge script which does this:
>
> rm -rf /var/lib/module-rebuild
> module-rebuild -C list
>
> and I do not know why -- did I dream this up myself, or did I inherit
> it from somewhere? I do not know.
>
> At any rate, it seems kind of odd. What is the proper way of using
> module_rebuild? It seems to me there are two cases, and maybe that
> is why this script has this odd code. If you have just built a brand
> new kernel, you might want to rebuild the module list from scratch.
> But once you have done that, future emerges only need to keep the
> module list up to date.
>
> And then I realized I don't even know what the module list actually
> is.
>
> Please enlighten me :-O
Looks like something you dreamed up.
/var/lib/module-rebuild contains a list of installed out-of-tree modules. You
delete the entire directory then list it (to prove that it is empty?)
I have no idea why you might have wanted to do that back in the day.
The correct way to use module-rebuild is to run once:
module-rebuild populate
This will search the tree to find out-of-kernel-tree module ebuilds you are
using and put them in a db or later use.
Every time you emerge and build a new kernel, run:
module-rebuild rebuild
This will build the missing modules for the kernel you just built.
module-rebuild add|del lets you maintain the list as you add and delete stuff
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] What is the proper usage of module_rebuild?
2011-05-16 14:49 ` Alan McKinnon
@ 2011-05-16 14:59 ` felix
2011-05-16 18:46 ` Alan McKinnon
0 siblings, 1 reply; 5+ messages in thread
From: felix @ 2011-05-16 14:59 UTC (permalink / raw
To: gentoo-user
On Mon, May 16, 2011 at 04:49:07PM +0200, Alan McKinnon wrote:
> The correct way to use module-rebuild is to run once:
>
> module-rebuild populate
>
> This will search the tree to find out-of-kernel-tree module ebuilds you are
> using and put them in a db or later use.
>
> Every time you emerge and build a new kernel, run:
>
> module-rebuild rebuild
>
> This will build the missing modules for the kernel you just built.
>
> module-rebuild add|del lets you maintain the list as you add and delete stuff
If populate inits the list, are add/del only there to avoid a length
tree search? Otherwise I take it you mean run populate once, then
rebuild after every new kernel, and otherwise do nothing?
--
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] What is the proper usage of module_rebuild?
2011-05-16 14:59 ` felix
@ 2011-05-16 18:46 ` Alan McKinnon
0 siblings, 0 replies; 5+ messages in thread
From: Alan McKinnon @ 2011-05-16 18:46 UTC (permalink / raw
To: gentoo-user; +Cc: felix
Apparently, though unproven, at 16:59 on Monday 16 May 2011, felix@crowfix.com
did opine thusly:
> On Mon, May 16, 2011 at 04:49:07PM +0200, Alan McKinnon wrote:
> > The correct way to use module-rebuild is to run once:
> >
> > module-rebuild populate
> >
> > This will search the tree to find out-of-kernel-tree module ebuilds you
> > are using and put them in a db or later use.
> >
> > Every time you emerge and build a new kernel, run:
> >
> > module-rebuild rebuild
> >
> > This will build the missing modules for the kernel you just built.
> >
> > module-rebuild add|del lets you maintain the list as you add and delete
> > stuff
>
> If populate inits the list, are add/del only there to avoid a length
> tree search? Otherwise I take it you mean run populate once, then
> rebuild after every new kernel, and otherwise do nothing?
Correct. populate is the kind of thing you run once at the beginning and never
again. add|del is run whenever you need them and rebuild after every new
kernel merge (even -r versions)
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] What is the proper usage of module_rebuild?
2011-05-16 13:20 [gentoo-user] What is the proper usage of module_rebuild? felix
2011-05-16 14:49 ` Alan McKinnon
@ 2011-05-17 13:37 ` Alex Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Alex Schuster @ 2011-05-17 13:37 UTC (permalink / raw
To: gentoo-user
felix@crowfix.com writes:
> At any rate, it seems kind of odd. What is the proper way of using
> module_rebuild? It seems to me there are two cases, and maybe that
> is why this script has this odd code. If you have just built a brand
> new kernel, you might want to rebuild the module list from scratch.
> But once you have done that, future emerges only need to keep the
> module list up to date.
Whatever. With a recent portage you just emerge @module-rebuild, that's what
I use. There's also @x11-module-rebuild, for recompiling Xorg stuff when
xorg-server is updated.
Wonko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-17 13:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-16 13:20 [gentoo-user] What is the proper usage of module_rebuild? felix
2011-05-16 14:49 ` Alan McKinnon
2011-05-16 14:59 ` felix
2011-05-16 18:46 ` Alan McKinnon
2011-05-17 13:37 ` Alex Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox