[CentOS-devel] [CentOS] jigdo images
Shad L. Lords
slords at lordsfam.net
Thu May 7 03:27:17 UTC 2009
Scott Dowdle wrote:
> Shad,
>
> ----- "Shad L. Lords" <slords at lordsfam.net> wrote:
>> 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.
>
> Thanks for the recipe. Worked for me. My only complaint is that the
> .template files are about 2/3rds the size of the .iso they are for...
> so you end up downloading 2/3rds of an ISO as a template, then all of
> the files that make up the media... and then have to process it for
> your own .iso.
>
> If you have a local copy of a the repos it pulls from that is handy...
> but if not, it seems to be significantly more downloading for the
> end user than just the .iso media... and the only transfer savings
> for the provider of the .jigdo (rather than providing the .isos)
> is that 1/3rd-ish savings over the .iso.
>
> Is that how it is supposed to work?
I don't have the DVD iso so I'm not sure about that one but when I ran it
for the CD iso's I got a template of about 15MB for disc1 and < 1MB for
each of the other discs. If you remove the exclude for NOTES/ from the
rsync then the template drops to < 5MB (but you have to download all the
release notes).
Are you sure you had a complete rsync of the os directory without excluding
anything prior to running the above command? This was really more a recipe
for the CentOS folks to as an example of how easy it would be to create
jigdo/template files from their master area that could then be pushed to
the mirrors for everyone to enjoy.
-Shad
More information about the CentOS-devel
mailing list