LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-23-2010, 06:51 AM   #1
dizowned
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Rep: Reputation: 0
RedHat kickstart post fglrx rpm install not working


As the title says, I'm building a kickstart for a RedHat installation.
I'm trying to incorporate the firegl driver rpm installation and its halfway working, not completly. What I've tried so far is to place the rpm in the --nochroot and in the normal chroot enviornment and neither one works. In the --nochroot, install it with rpm --root /mnt/sysimage/
and in the normal post i just do an rpm -ivh. In either case the fglrx folder is built within /lib/modules, however everything thats supposed to be installed never makes it to the newly installed root. I'm thinking that its actually getting installed to the installation / as opposed to the new /. I'm rebuilding another kickstart to verify this but until then, any suggestions or insight would be much appreciated. Thanks All.
 
Old 02-24-2010, 04:42 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I usually install all packages in the %post section without any issues... maybe the rpm is doing something strange ? .. can you do an 'rpm -qp --scripts <firegl_rpm_name.rpm>'

Where did you get the rpm from ?

cheers
 
Old 02-26-2010, 04:43 AM   #3
dizowned
LQ Newbie
 
Registered: Jan 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the reply, I figured it out and you are kind of right about the rpm doing something strange. Part of the rpm post is to have a custom fglrx module built via script. The way the sh script looks for the kernel headers causes it to look in
/usr/src/linux/include for the headers. In the latest kernel releases they no longer use /usr/src/linux/include. Usually they just use /usr/src/redhat/kernel-version/... and /lib/modules/kernel-version/... , The fglrx bin that will build you custom rpm's for different distro's builds in a way for the rpm to find your kernel headers based on uname queries. The problem with doing this during installation is that one of the conditionals in the includes if-else routines comes up true, which causes the /usr/src/linux/include to be used as opposed to the real /lib/modules/kernel-version/build/include. It's either something weird that happens do to the chroot env your operating in, or maybe its something totally different.
The only work around I've found is to extract the rpm, pull the post script and have the sh script run with hard coded settings as part of the post, which then of course defeats the whole point of having an rpm...

Last edited by dizowned; 02-26-2010 at 04:47 AM.
 
Old 02-26-2010, 07:21 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You could convert it to a dkms rpm... I had to do a few drivers like that recently. It works really well, dkms checks on boot whether the module matches the running kernel and if not compiles and inserts on the fly during boot

Ref: http://linux.dell.com/dkms/

cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kickstart %post install from a USB Key Joust Linux - Newbie 2 07-28-2009 08:00 PM
Cannot mount cdrom in kickstart post-install VG1 Linux - Enterprise 3 05-20-2009 10:37 AM
FC6 kickstart doesn't post install pete@cosc. Fedora - Installation 2 01-15-2007 08:54 PM
rh9 kickstart post install help stockcowboy Linux - Newbie 1 12-05-2003 11:45 AM
Kickstart Post-install tasks TheRealDeal Linux - General 0 09-03-2003 01:13 AM


All times are GMT -5. The time now is 03:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration