[CentOS-devel] Wrong directory in CentOS5-respin
huruomu at gmail.com
Mon May 5 12:47:54 UTC 2008
I often need to install CentOS5 on servers, I do this a lot, so I think
I need a respin dist (all updates included).
I wrote a script to generate my CentOS5-respin. My CentOS5 tree is at
/centos/5, it is rsynced with a Taiwan mirror daily. My generated
CentOS5 tree is placed at /centos/5-respin.
The generation of CentOS5-respin by my script runs fine, but the
generated CentOS5-respin tree has a problem: During network installation
using this CentOS5-respin tree, when it gets rpm installation, it always
complains "The file system-config-services-0.9.4-1.el5.noarch.rpm cannot
be opened.". In the text console, the error message is "Failed to get
Anaconda should look for rpms in /centos/5-respin/os/x86_64/CentOS, but
it actually looks for rpms in /centos/5-respin/os/x86_64.
It would be nice if anyone could point me to some useful docs.
P.S. Here's my script:
# To use this script, the following rpms need to installed first:
# busybox-anaconda ?
# 1. Should we use pkgorder? If yes, when?
# 2. Do we need to run pkgorder before buildinstall?
# 3. Do we need to run createrepo? Buildinstall seems to calls it.
# 4. Why does it look for rpms in /centos/5-respin/os/x86_64?
# Check tools
if [ ! -x "$rpmmerge" ]; then
echo "$rpmmerge does not exist or is not executable." >&2
if [ ! -x "$createrepo" ]; then
echo "$createrepo does not exist or is not executable." >&2
if [ ! -x "$buildinstall" ]; then
echo "$buildinstall does not exist or is not executable." >&2
# Set variables and functions
test $? -ne 0 && exit 1
# Merge rpms
echo -e "*** Merge rpms ***\n"
$rpmmerge $src/os/$arch/$distro $src/updates/$arch/RPMS
# Create repo data
echo -e "\n*** Create repo data ***\n"
#cp -al $src/os/$arch/repodata/comps.xml $dest/os/$arch/$distro
$createrepo -q -g $src/os/$arch/repodata/comps.xml -c $dest/os/$arch/cache \
-o $dest/os/$arch $dest/os/$arch/$distro
#rm -f $dest/os/$arch/$distro/comps.xml
# Run buildinstall
echo -e "\n*** Buildinstall ***\n"
sudo $buildinstall \
--pkgorder "$dest/os/$arch/pkgorder.txt" \
--version $version \
--product $product \
--release $release \
--prodpath $prodpath \
More information about the CentOS-devel