[CentOS-devel] [CentOS] jigdo images

Shad L. Lords slords at lordsfam.net
Wed May 6 19:59:13 UTC 2009


Ralph Angenendt wrote:
>> I have been looking what Fedora is (or was) doing with Jigdo. It seems 
>> to solve some problems and create new ones[1].
> 
> Let me look into that.

 From the os directory something like this should produce jigdo 
files/templates for all associated iso files.

for arch in i386 x86_64
do
     rsync -a --delete --delete-excluded \
         --exclude 'repodata/' --exclude 'EULA' \
         --exclude 'GPL' --exclude 'NOTES/' \
         --exclude 'RELEASE-NOTES*' --exclude 'RPM-GPG-KEY*' \
         --link-dest=../$arch/ $arch/ ${arch}.jigdo/

     for iso in $(find ../isos/i386/ -name '*.iso' -size +100000)
     do
         jigdo-file make-template --force -i $iso \
             -j ${iso%.iso}.jigdo -t ${iso%.iso}.template \
             --label CentOS=$arch.jigdo/ \
             --uri CentOS=http://mirror.centos.org/centos/5/os/$arch/ \
             ${arch}.jigdo//
     done
done

After the files/templates are created they can be moved to a 
different/better location as well as updating the Servers section if 
desired.

Hope this helps someone,

-Shad



More information about the CentOS-devel mailing list