Ask Your Question
5

How do akmod packages work?

asked 2014-10-20 12:47:55 -0500

jon.reeve gravatar image

I hear they compile kernel module packages from source on reboot. What I'd like to know is:

  • Where do they usually compile them?
  • Where do the compiled modules end up?
  • How do I know an akmod package has compiled a kernel module?
  • Where do I look for errors it may have had?

Thanks very much in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-10-21 17:24:50 -0500

FranciscoD_ gravatar image

updated 2014-10-24 12:07:24 -0500

It's difficult to find documentation on akmods. Here's a start:

http://rpmfusion.org/Packaging/KernelModules/Akmods

http://webcache.googleusercontent.com/search?q=cache:QqtVI3IQ2rsJ:fedorasolved.org/Members/zcat/akmods+&cd=7&hl=en&ct=clnk&gl=uk&client=firefox-a

(the second link is a google cached version of http://fedorasolved.org/Members/zcat/akmods )

Quoting a section:

How does it work (in general)?

An akmod is actually just a regular RPM which contains a SRC.RPM + a spec file to bring in the deps necessary to build it. The source RPMs are expected to be found in /usr/src/akmods/ by the akmodsbuild script. If the version found there is newer than the kmod installed, it will be rebuilt, or if the kmod does not exist (/lib/modules/KERNELVERSION/extra/nvidia/nvidia.ko), it will be rebuilt.

How does the kmod get rebuilt immediately after a kernel is installed? By the postinstall script in /etc/kernel/postinst.d/akmods (note: the only other postinst script currently is supplied by "dkms")

edit flag offensive delete link more

Comments

3

Thanks. At the bottom of the second page there, there are a few answers to some of my questions. If you can edit your answer to include that paragraph (the one with the header "How does it work (in general)?"), I'll accept this answer.

jon.reeve gravatar imagejon.reeve ( 2014-10-24 11:54:12 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-10-20 12:47:55 -0500

Seen: 5,800 times

Last updated: Oct 24 '14