[ATrpms-users] How can I install CentOS and get the nvidia-graphics driver from ATrpms during the install?

Craig Huff huffcslists at gmail.com
Tue Jan 22 05:02:54 CET 2008


On Jan 10, 2008 12:27 PM, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
>
> > It is very tricky -- might I say nigh impossible -- to work with the system
> > without a visible cursor to get to the point of installing the nvidia-graphics
> > driver and kmdl post-install.
> >
> > Is there a way to get it done during the installation?
> >
>
> I do this with kickstart files and by adding all packages I'd like
> installed in the postinstall script part.

Okay... I have been twiddling with a postinstall script and it seems
to work except for the step that invokes yum to install the
nvidia-graphics packages and I can't seem to get a log file produced
somewhere that I can read to find out what went wrong.  Can someone
tell me what's wrong with the following setup?

First off, I have this:

repo --name=atrpms --baseurl=http://dl.atrpms.net/el5-i386/atrpms/stable

in the command section and I have this as my %post section:

%post --log=/root/anaconda_post.log
set -x
mount /dev/sdc1 /mnt
cd /etc/X11
cp -p xorg.conf xorg.conf.baseline
patch -up1 < /mnt/patch.xorg.conf
cp -p /mnt/atrpms.repo /etc/yum.repos.d
yum -y install nvidia-graphics169.07 nvidia-graphics169.07-kmdl-`uname
-r` nvidia-graphics169.07-libs yum-plugin-kmdl yum-fastestmirror
yum-priorities yum-repolist yumex
%end

while /mnt/atrpms.repo contains (ignoring comments):

[atrpms]
name=ATrpms for RHEL and CentOS $releasever - $basearch
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
enabled=1
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
[atrpms-testing]
name=ATrpms Replacements/Additions for RHEL and CentOS $releasever -
$basearch rpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing
enabled=1
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms

When I boot up after the install completes, I can see that all the
file manipulations in the %post script have been performed, but there
is no anaconda_post.log file and the yum command apparently failed as
none of the packages got installed.

Any help fixing either problem would be appreciated, because right now
I'm stumped.

Craig.



More information about the atrpms-users mailing list