Mr. Dawson
Thank you very much. It is working by your advise.
#----------------------------------------------------------------------------------------------------
5. createrepo -o /disk/SL -g /disk/SL/repodata/comps-sl.xml /disk/SL/
#----------------------------------------------------------------------------------------------------

and the next step also not running good. I also write some command in the
%post section of ks.cfg

#----------------------------------------------------------------------------------------------------
%post --nochroot
# Mount CDROM
echo '**** Mount CDROM (nochroot) *****'             >>
mnt/sysimage/tmp/post-chroot.log
mkdir -p /mnt/cdrom                                  >>
mnt/sysimage/tmp/post-chroot.log
mount /tmp/cdrom /mnt/cdrom -o ro                    >>
mnt/sysimage/tmp/post-chroot.log
cp /mnt/cdrom/MyRPMS/*.rpm /mnt/sysimage/tmp/        >>
mnt/sysimage/tmp/post-chroot.log
# umount to source media
umount /mnt/cdrom                                    >>
mnt/sysimage/tmp/post-chroot.log 2>> /tmp/post-chroot.log
echo '======================================'        >>
mnt/sysimage/tmp/post-chroot.log
#----------------------------------------------------------------------------------------------------

It is seems not mount cdrom success, I also try mount cdrom like this
#----------------------------------------------------------------------------------------------------

mount /dev/cdrom /mnt/cdrom -o ro
#----------------------------------------------------------------------------------------------------

It is not work,
How can I setting mount cdrom in ks.cfg for copy some file not belong to SL
rpm packages.


2009/8/28 Troy Dawson <[email protected]>

>  On 08/28/2009 03:24 AM, Changjie Cui wrote:
>
>> Hi,
>> I have made a customized install CD base on SL5.3, it just for
>> installing of rpms necessary for myself, the procedure is:
>>
>> 1. mkdir /disk
>> 2. cp -R /mnt/cdrom/. /disk/
>> 3. rm /disk/SL/*.rpm
>> 4. copy the necessary rpms into /disk/SL
>> 5. createrepo -o /disk/SL -g /disk/SL/repodata/comps-sl.xml /disk/
>> 6. customize a ks.cfg and copy it into /disk/
>> 7. customize /disk/isolinux/isolinux.cfg and let it start install using
>> ks.cfg
>> 8. mkisofs -o MySL53.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
>> -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T /disk/
>>
>> the CD can boot and start installing, but when it start installing rpms,
>> it show me a error like this
>>
>> ----------------------------Error---------------------------------------------
>> The file termcap-5.5-1.20060701.1.noarch.rpm cannot be opened. This is
>> due to a missing file, a corrupt package or corrupt media. Please verify
>> your installation source.
>>
>> If you exit, your system will be left in an inconsistent state that will
>> likely require reinstallation.
>>
>> --------------------------------------------------------------------------------
>>
>> the rpm file has exists in SL folder of cdrom, why it(ANACONDA) can not
>> recognize the file location? or how can I set the rpms location to let
>> ANACONDA know it?
>>
>>
> I believe it is step 5 that is the problem.
> Instead of
>
> 5. createrepo -o /disk/SL -g /disk/SL/repodata/comps-sl.xml /disk/
>
> do
>
> 5. createrepo -o /disk/SL -g /disk/SL/repodata/comps-sl.xml /disk/SL/
>
> Or, just incase, do them both.
>
> Troy
> --
> __________________________________________________
> Troy Dawson  [email protected]  (630)840-6468
> Fermilab  ComputingDivision/LCSI/CSI LMSS Group
> __________________________________________________
>

Reply via email to