[ATrpms-users] Need help with kickstart %post script to install atrpms RPMs

Craig Huff huffcslists at gmail.com
Wed Jan 23 12:31:42 CET 2008


Okay... I have been twiddling with a postinstall script to
automatically install RPMs from the ATrpms repository, like
nvidia-graphics, and the script seems to do all the preliminary steps,
like copying the contents of atrpms.repo from the drive that has the
kickstart file to /etc/yum.repos.d.  Unfortunately, the last step,
which invokes yum to install the nvidia-graphics packages, doesn't
work 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