Hi Ralph
I received this e-mail from Fedora Infrastructure list. My problem at that moment was a proper syntax for the jigdo-file command.
Using the their script as reference, I made a simpler one to test the command[1]. And it's working: newt (Linux) $pwd; ls -l *.jigdo *.template /users/newt2/mgarcia/iso/dvd -rw-r--r-- 1 mgarcia slocate 214226 May 13 13:44 CentOS-5.3-i386-bin-DVD.jigdo -rw-r--r-- 1 mgarcia slocate 196853099 May 13 13:44 CentOS-5.3-i386-bin-DVD.template newt (Linux) $
I copy all the files in CentOS directory of the image to the directory "/users/newt2/mgarcia/iso/os", so I could export as NFS.
I don't know if there is a better way to test, but what I did was to create a centos.conf in /etc/httpd/conf.d[2]. Then in the machine called prost, issued the command: [root@prost ~]# jigdo-lite http://newt/centos/CentOS-5.3-i386-bin-DVD.jigdo
Jigsaw Download "lite" Copyright (C) 2001-2005 | jigdo@ Richard Atterer | atterer.net (...)
Regards
mg.
[1] *=====* #!/bin/sh
ISO_DIR=/newt2/mgarcia/iso/dvd/CentOS-5.3-i386-bin-DVD.iso ARCH=i386
jigdo-file make-template \ --image=${ISO_DIR} \ /users/newt2/mgarcia/iso/os \ --label "Base-${ARCH}"="/users/newt2/mgarcia/iso/os" \ --uri "Base-${ARCH}"="http://mirror.centos.org/centos-5/5/os/i386" \ --force *=====*
[2] Alias /centos "/users/newt2/mgarcia/iso/dvd/"
<Directory "/users/newt2/mgarcia/iso/dvd/"> Options None Order allow,deny Allow from all </Directory>
-------- Original Message -------- Subject: Re: How to generate a .template and .jigdo from an iso image? Date: Sun, 10 May 2009 15:22:27 +0200 From: Jeroen van Meeuwen kanarip@kanarip.com Reply-To: Fedora Infrastructure fedora-infrastructure-list@redhat.com To: Fedora Infrastructure fedora-infrastructure-list@redhat.com References: 4A034BEA.4000906@googlemail.com 1241740929.12122.349.camel@ignacio.lan 4A03D29D.7060408@googlemail.com
On 05/08/2009 08:35 AM, Marcelo M. Garcia wrote:
Hi
I read the man page. It says that I have to specify only one of the options "-i", "-j" or "-t". OK. If I use only -i, my template has the same size of image, then there is no point in using jigdo. There must be something more.
My question is how Fedora generates the .template with only 11.1M? The command "jigdo-file -i CentOS-5.3-i386-bin-DVD.iso" it's not enough.
Attached is the script Fedora Unity uses to jigdofy it's Re-Spins. Note the "function jigdofy()" in the top that may just help you get the syntax right.
Note the double slash in the two directories passed to the "jigdo-file make-template" command, which functions as a delimiter for jigdo-file, so that in the --label parameter, we can 'label' the path and then attach a URI (--uri) to be used in the resulting .jigdo file instead.
$1 is the (fully qualified) path to the .iso image, $2 is the base architecture for the .iso image (i386, x86_64 or ppc in our case), and ${version} is the Fedora $releasever (9 or 10 right now).
Also note that /data/os/distr/fedora is a local, full mirror and that /data/os/archive/fedora is a local, full archive (with package files that have been removed from the mirror because for example they've expired and have been superseeded by another update to said package).
Kind regards,
Jeroen van Meeuwen -kanarip
_______________________________________________ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Marcelo M. Garcia wrote:
Hi Ralph
...
I don't know if there is a better way to test, but what I did was to create a centos.conf in /etc/httpd/conf.d[2]. Then in the machine called prost, issued the command: [root@prost ~]# jigdo-lite http://newt/centos/CentOS-5.3-i386-bin-DVD.jigdo
The ultimate test of a jigdo image is a matching md5sum or sha1sum.
This recent centos-devel thread may be of interest.
http://lists.centos.org/pipermail/centos-devel/2009-May/004548.html
Phil Schaffner wrote:
Marcelo M. Garcia wrote:
Hi Ralph
...
I don't know if there is a better way to test, but what I did was to create a centos.conf in /etc/httpd/conf.d[2]. Then in the machine called prost, issued the command: [root@prost ~]# jigdo-lite http://newt/centos/CentOS-5.3-i386-bin-DVD.jigdo
The ultimate test of a jigdo image is a matching md5sum or sha1sum.
This recent centos-devel thread may be of interest.
http://lists.centos.org/pipermail/centos-devel/2009-May/004548.html _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Phil
The md5sum and the sha1sum matches[1]. The resulting .template file has 188M, not as good as Fedora (11.1M), but better than 3.3G of the DVD.
You can notice that my md5sum is different from the DVD in web sites, I image that this is because I build the DVD from the CDs[2]. I don't know if this is a problem. My goal was just to test jigdo-file for now.
Regards
mg.
[1] efb8212d4e45072ecfd6e409fec4582a CentOS-5.3-i386-bin-DVD.iso (original) efb8212d4e45072ecfd6e409fec4582a CentOS-5.3-i386-bin-DVD.iso (jigdo)
4d7f8ba97a028a5244a15bc553d08124f746f6f0 CentOS-5.3-i386-bin-DVD.iso (original) 4d7f8ba97a028a5244a15bc553d08124f746f6f0 CentOS-5.3-i386-bin-DVD.iso (jigdo)