Fedora Linux Support Community & Resources Center
  #1  
Old 14th December 2011, 05:56 PM
tuxor Offline
Registered User
 
Join Date: Mar 2011
Posts: 179
linuxfirefox
akmod rpm: problems with "version magic"

I built an akmod-package following these instructions: http://rpmfusion.org/Packaging/KernelModules/Kmods2

Everything works fine, except for the fact, that the new kmod is built each time a new kernel has been installed - and that means directly after "yum update" finished and not on next reboot after installation. So the new modules are corrupt and won't load due to "version magic" (at least, that's the dmesg output). If I reboot, uninstall the "kmod-*"-package and run "akmods" I'm getting a working kmod build.

I *think*, the problem is this file:
Code:
/etc/kernel/postinst.d/akmods
Inside this script, it's running:
Code:
nohup /usr/sbin/akmods --from-kernel-posttrans --kernels ${1} &> /dev/null &
How can I configure my RPM (spec file) so that this file won't be created, so that the new kmod is only built on boottime (the script responsible for that is: /etc/rc.d/init.d/akmods)?
__________________
Fedora on Lenovo ThinkPad T400s

Last edited by tuxor; 14th December 2011 at 06:00 PM.
Reply With Quote
  #2  
Old 17th December 2011, 09:30 AM
tuxor Offline
Registered User
 
Join Date: Mar 2011
Posts: 179
linuxfirefox
Re: akmod rpm: problems with "version magic"

When I simply comment out the lines in /etc/kernel/postinst.d/akmods I run into another problem:

The akmod-modules will be built on next boot time, but after "fedora-modules-load.service" has started. That means, they will be built, but not loaded, since they are built "to late" during boot.

No idea what I could do about any of these problems?
__________________
Fedora on Lenovo ThinkPad T400s
Reply With Quote
  #3  
Old 24th December 2011, 02:50 PM
tuxor Offline
Registered User
 
Join Date: Mar 2011
Posts: 179
linuxfirefox
Re: akmod rpm: problems with "version magic"

No ideas how I could bring some order into this chaos?
__________________
Fedora on Lenovo ThinkPad T400s
Reply With Quote
  #4  
Old 24th December 2011, 07:28 PM
vallimar Online
Registered User
 
Join Date: Jul 2008
Posts: 1,065
windows_xp_2003chrome
Re: akmod rpm: problems with "version magic"

I'm not familiar with akmods (prefer dkms), but you should only need to add the following bit
to the top of the .spec file that is building the kmod:
Code:
%define buildforkernels newest
That define can have 3 values, but newest is what you want and make sure that it is only
being defined once. That is where I would start, though if that isn't the problem then
maybe someone else knows more.
Reply With Quote
Reply

Tags
akmod, problems, rpm, version magic

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
¿No package "akmod-gspca" available? kirikokis Using Fedora 2 30th June 2009 08:07 PM
Mysterious "magic numbers" in HTTP response text aleph Linux Chat 2 29th April 2009 04:56 AM
emacs apply "magic" tabs to whole file daviddoria Using Fedora 1 10th June 2008 07:16 PM
""Unable to read version lock configuration: [Errno 5]"" PHILLIPE Using Fedora 4 30th April 2007 04:32 PM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 05:59 AM


Current GMT-time: 08:33 (Thursday, 18-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Java Joint Photos - Pool & bar at the Westin Resort Dubai - Ah Shan Hostel,Hong Kong