Im running the procedure converting the extracted CentOS 4.4 ISO image, back to ISO image. Im btween my procedure i caught an error pls help me out it is very urgent to me and thanks in advance.
The details are as follows:-
My centOS version is 4.4.
STEP 1: Once the ISO files are downloaded, i need to extract their contents into our working directory, with the following commands. (You should place these into a script and execute it.)
STEP2: I have edited my required file in extracted image.#!/bin/bash
for iso in CentOS-4.4-i386-bin1of4.iso CentOS-4.4-i386-bin2of4.iso CentOS-4.4-i386-bin3of4.iso CentOS-4.4-i386-bin4of4.iso; do
mount -o loop $BUILDBASE/linux/$iso /mnt ; cd /mnt ; \
tar -cf - * | ( cd $BUILDBASE/linux/i386/ ; tar -xpf - ) ; \
cd $BUILDBASE ; umount /mntdone
STEP3:
First, we need to re-generate the hdlist file. Do so with the following command:
genhdlist $BUILDBASE/linux/i386
Next, create our package order file by issuing the following command:
pkgorder $BUILDBASE/linux/i386 i386 | tee $BUILDBASE/linux/pkgfile.`date +%Y-%m-%d`
Now, update the installation files by entering the following command:
All the above procedure went successfully except a lot of warnings i think tat warnings are og no use. :)buildinstall --comp dist-4.4 --pkgorder $BUILDBASE/linux/pkgfile.`date +%Y-%m-%d` \
--version 4.4 --product 'CentOS' --release 'CentOS 4.4 \
$BUILDBASE/linux/i386
STEP4:The following commands will do the split and re-create the hdlist files for each CD:
RELEASE="CentOS 4.4 with updates to $(date '+%Y-%M-%d %H:%m')"
rm -rf $BUILDBASE/linux/i386-disc[1-8]
Now after this a caught my problem:-
splittree.py --arch=i386 --total-discs=4 --bin-discs=1 --src-discs=3 --release-string="$RELEASE" \
--pkgorderfile=$BUILDBASE/linux/pkgfile.`date +%Y-%m-%d` \
--distdir=$BUILDBASE/linux/i386 \
--srcdir=$BUILDBASE/linux/i386/SRPMS --productpath=CentOS
and the error is
Traceback (most recent call last):
File "/usr/lib/anaconda-runtime/splittree.py", line 455, in ?
logfile = timber.main()
File "/usr/lib/anaconda-runtime/splittree.py", line 380, in main
self.splitRPMS()
File "/usr/lib/anaconda-runtime/splittree.py", line 253, in splitRPMS
pkg_nvr = nvra("%s/%s/RPMS/%s" %(self.dist_dir, self.product_path, filename))
File "/usr/lib/anaconda-runtime/splittree.py", line 39, in nvra
h = _ts.hdrFromFdno(fd)
rpm.error: error reading package header
i have browsed through internet i found tat it is due to no of discs but im not getting out of error. Can you pls help me out.
Thanks of all for reading this mail , if you have any solution pls help me out.
--
With regards:
Nitesh jain
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list