May 24, 2010
I want to set up an installation server for CentOS 5.5, using PXE for boot, kickstart for package selection (one for server), and NFS for share all files needed.I've succesfully completed a fresh installation of CentOS5 from the DVD for one of my servers (virgil), and I've copied the anaconda-ks.cfg generated by the installer to my install server (beatrix).
View 6 Replies
Next, I've properly configured the /etc/dhcpd.conf , the /tftpboot/pxelinux.cfg/<IP_CODED> and the /etc/exports for NFS sharing on beatrix.Then, I've copied all the first DVD of CentOS5 content in this folder on beatrix: /opt/CentOS_install I've tried to start virgil from ethernet, and all has gone ok, with the kickstart and so on! But I've decided to apply the updates (new kernel, sudo, xorg, ...), so I've deleted the old rpms from /opt/CentOS_install/CentOS and copied the new ones (downloaded from http://mirror.centos.org/centos-5/5/updates/x86_64/RPMS/). So, I've launched the following commands to recreate the repodata:
root@beatrix:/opt/CentOS_install/ # mv repodata/comps.xml CentOS/
root@beatrix:/opt/CentOS_install/ # rm -fr repodata
root@beatrix:/opt/CentOS_install/ # createrepo -p -o /opt/CentOS_install/ -g comps.xml /opt/CentOS_install/CentOS
But when I try to reinstall virgil, an error message appears, telling me that a package (perl-DBI-...) isn't present in the media.After some debugging, I've noticed that in the /opt/CentOS_install/repodata/primary.xml.gz there isn't the correct path for the rpms. If you look at the original primary.xml, the "path" is like:path="CentOS/abcxyz.rpm" while in the generated file (with createrepo) the path is:
path="abcxyz.rpm".How can I recreate the repodata with the correct path information?