How to generate a .template and .jigdo from an iso image?
Hi. I'm interested in generating the .jigdo and .template from a .iso image. I couldn't find much information on this. It would be a straightforward process, just run "jigdo-file file.iso" and I would have my .jigdo and my .template. The problem is doing like this, my .template has almost the same size of the .iso image. I noticed that the Fedora 11 x86_64 has only 11.1M. My question is how to do that? How to get a .template so small? Where I can get a good documentation about jigdo-file? The official web site[1] it isn't very helpful. Thanks Marcelo [1] http://atterer.net/jigdo/ ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Re: How to generate a .template and .jigdo from an iso image?
On Thu, 2009-05-07 at 22:00 +0100, Marcelo M. Garcia wrote: > Hi. > > I'm interested in generating the .jigdo and .template from a .iso image. > I couldn't find much information on this. It would be a straightforward > process, just run "jigdo-file file.iso" and I would have my .jigdo and > my .template. > > The problem is doing like this, my .template has almost the same size of > the .iso image. I noticed that the Fedora 11 x86_64 has only 11.1M. My > question is how to do that? How to get a .template so small? > > Where I can get a good documentation about jigdo-file? The official web > site[1] it isn't very helpful. > > Thanks > > Marcelo From man 1 jigdo-file: """ jigdo-file COMMAND [ --image=cdrom.iso ] [ --jigdo=cdrom.jigdo ] [ --template=cdrom.template ] [ --force ] [ MORE OPTIONS ] [ FILES ... | --files-from=f ] Common COMMANDs: make-template, make-image, verify ... -i --image=cdrom.iso Specify location of the file containing the image. The image is the large file that you want to distribute. -j --jigdo=cdrom.jigdo Specify location of the Jigsaw Download description file. The jigdo file is a human-readable file generated by jigdo- file, to which you add information about all the servers you are going to upload the files to. jigdo will download this file as the first step of retrieving the image. -t --template=cdrom.template Specify location of the image ‘template’ file. The template file is a binary file generated by jigdo-file, it contains information on how to reassemble the image and also (in compressed form) all the data from the image which was not found in any of the parts. Depending on the command, each of these three files is used sometimes for input, sometimes for output. If the file is to be used for output for a particular com- mand and the output file already exists, jigdo-file exits with an error, unless --force is present. In most cases, you will only need to specify one out of -i -j -t, because any missing filenames will be deduced from the one you specify. This is done by first stripping any extension from the supplied name and then appending nothing (if deducing --image), ‘.jigdo’ or ‘.template’. ... FILES Names of files or directories to use as input. These are the parts that are con- tained in the image. In case one of the names is a directory, the program recur- sively scans the directory and adds all files contained in it. While doing this, it follows symbolic links, but avoids symlink loops. If one of the filenames starts with the character ‘-’, you must precede the list of files with ‘--’. A value of ‘-’ has no special meaning in this list, it stands for a file whose name is a single hyphen. """ -- Ignacio Vazquez-Abrams PLEASE don't CC me; I'm already subscribed signature.asc Description: This is a digitally signed message part ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Re: How to generate a .template and .jigdo from an iso image?
Hi - "Ignacio Vazquez-Abrams" escribió: > On Thu, 2009-05-07 at 22:00 +0100, Marcelo M. Garcia wrote: > > Hi. > > > > I'm interested in generating the .jigdo and .template from a .iso > image. > > I couldn't find much information on this. It would be a > straightforward > > process, just run "jigdo-file file.iso" and I would have my .jigdo > and > > my .template. > > > > The problem is doing like this, my .template has almost the same > size of > > the .iso image. I noticed that the Fedora 11 x86_64 has only 11.1M. > My > > question is how to do that? How to get a .template so small? > > > > Where I can get a good documentation about jigdo-file? The official > web > > site[1] it isn't very helpful. > > > > Thanks > > > > Marcelo > > From man 1 jigdo-file: > > """ >jigdo-file COMMAND > [ --image=cdrom.iso ] [ --jigdo=cdrom.jigdo ] >[ --template=cdrom.template ] [ --force ] [ >MORE OPTIONS ] [ FILES ... | --files-from=f ] > Common COMMANDs: make-template, make-image, >verify Ignacio, the problem with size is probably because not having files available, what I used is https://alufis35.uv.es/Creando-plantillas-Jigdo-Jigsaw.html, translating it: Having iso original file at path/iso/ and having the iso loopback mounted and available at path/tree/ We should run jigdo-file mt -i path/iso/Fedora.iso -j Fedora-DVD.jigdo -t Fedora-DVD.template —uri fedoramirrors=http://whatevermirror path/tree/ After some checks, trying to download missing files it will create the template and .jigdo and hopefully, will be a small one ;) Regards Pablo -- Pablo Iranzo Gómez (pablo.ira...@redhat.com) RHC{SP,E,SS,DS,A} Senior Global Profesional Services Consultant Phone: +34 645 01 01 49 (CET/CEST) GnuPG KeyID: 0xFAD3CF0D -- Inscrita en el Reg. Mercantil de Madrid – C.I.F. B-82 65 79 41 Directores: Michael Cunningham, Charlie Peters y David Owens Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, España Dirección contacto: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, Planta 3ºD, 28016 Madrid, Spain ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Re: How to generate a .template and .jigdo from an iso image?
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. Regards Marcelo Ignacio Vazquez-Abrams wrote: On Thu, 2009-05-07 at 22:00 +0100, Marcelo M. Garcia wrote: Hi. I'm interested in generating the .jigdo and .template from a .iso image. I couldn't find much information on this. It would be a straightforward process, just run "jigdo-file file.iso" and I would have my .jigdo and my .template. The problem is doing like this, my .template has almost the same size of the .iso image. I noticed that the Fedora 11 x86_64 has only 11.1M. My question is how to do that? How to get a .template so small? Where I can get a good documentation about jigdo-file? The official web site[1] it isn't very helpful. Thanks Marcelo From man 1 jigdo-file: """ jigdo-file COMMAND [ --image=cdrom.iso ] [ --jigdo=cdrom.jigdo ] [ --template=cdrom.template ] [ --force ] [ MORE OPTIONS ] [ FILES ... | --files-from=f ] Common COMMANDs: make-template, make-image, verify ... -i --image=cdrom.iso Specify location of the file containing the image. The image is the large file that you want to distribute. -j --jigdo=cdrom.jigdo Specify location of the Jigsaw Download description file. The jigdo file is a human-readable file generated by jigdo- file, to which you add information about all the servers you are going to upload the files to. jigdo will download this file as the first step of retrieving the image. -t --template=cdrom.template Specify location of the image ‘template’ file. The template file is a binary file generated by jigdo-file, it contains information on how to reassemble the image and also (in compressed form) all the data from the image which was not found in any of the parts. Depending on the command, each of these three files is used sometimes for input, sometimes for output. If the file is to be used for output for a particular com- mand and the output file already exists, jigdo-file exits with an error, unless --force is present. In most cases, you will only need to specify one out of -i -j -t, because any missing filenames will be deduced from the one you specify. This is done by first stripping any extension from the supplied name and then appending nothing (if deducing --image), ‘.jigdo’ or ‘.template’. ... FILES Names of files or directories to use as input. These are the parts that are con- tained in the image. In case one of the names is a directory, the program recur- sively scans the directory and adds all files contained in it. While doing this, it follows symbolic links, but avoids symlink loops. If one of the filenames starts with the character ‘-’, you must precede the list of files with ‘--’. A value of ‘-’ has no special meaning in this list, it stands for a file whose name is a single hyphen. """ ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Re: How to generate a .template and .jigdo from an iso image?
On Fri, 2009-05-08 at 07:35 +0100, 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. Did you read the part that says "FILES"? -- Ignacio Vazquez-Abrams PLEASE don't CC me; I'm already subscribed signature.asc Description: This is a digitally signed message part ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Re: How to generate a .template and .jigdo from an iso image?
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 jigdofy_everything.sh Description: Bourne shell script ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
Re: How to generate a .template and .jigdo from an iso image?
Jeroen van Meeuwen wrote: 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 Hi Jeroen Many thanks for that. Regards mg. ___ Fedora-infrastructure-list mailing list Fedora-infrastructure-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list