Gentoo: Rebuilding modules after a kernel upgrade

Rebuilding modules after a kernel upgrade

module-rebuild is a tool written by Gentoo developer John Mylchreest[12]
that serves a very simple, but utterly useful purpose: Whenever you’ve
upgraded your kernel to a newer version, this script hunts down all
packages that use – now outdated – kernel modules and rebuilds them for
you.
12. johnm_-a_t-_gentoo.org

Suppose you’ve just booted into a freshly updated kernel. First of all,
check which packages are using modules that haven’t been built with the
new sources yet:

±------------------------------------------------------------------------+
| Code Listing 4.1: |
| List packages |
±------------------------------------------------------------------------+
| |
|# module-rebuild list |
| |
±------------------------------------------------------------------------+

So, in case you’ve got any wireless drivers, exotic filesystems, anything
else that relies on kernel modules, chances are you’ve just found them
listed as a result of the above, and then you can rebuild them all by
simply going:

±------------------------------------------------------------------------+
| Code Listing 4.2: |
| Rebuild all affected packages |
±------------------------------------------------------------------------+
| |
|# module-rebuild rebuild |
| |
±------------------------------------------------------------------------+

Voila. Thanks to this little routine, you don’t need to keep a mental list
of things to do after a kernel update any longer.

แจ๋วๆ ขอบคุณครับ ลดความจำ และความผิดพลาดไปอีกเยอะ

http://xen0.thaiwiz.com/ --> cannot be found
ว่าจะไปดูซะหน่อยครับ :slight_smile:

http://xen0.thaiwiz.com/ –> cannot be found
ว่าจะไปดูซะหน่อยครับ :slight_smile:

ใช้ได้แล้วครับ admin มือบอนครับ แก้โน่นแก้นี่ จนลืมเปลี่ยน link :dgrin: