[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mirroring ISOs



Jean-Francois Chevrette (mirrors@iweb.ca) wrote on 9 April 2007 11:40:
 >Simon Paillard wrote:
 >> On Mon, Apr 09, 2007 at 08:43:07AM -0400, Jean-Francois Chevrette wrote:
 >>> Hi,
 >>>
 >>> does anyone have a straightforward guide on how to use jigdo to build
 >>> and mirror ISOs? I've been reading both jigdo documentation and debian's
 >>> webpage on the subjet and it just won't work.
 >> 
 >> Maybe with this one : http://www.debian.org/CD/mirroring/#jigdomirror
 >> and the related links ?
 >
 >Yes I've been using the suggested scripts however there appears to be a 
 >problem with the template checksums.
 >
 > From what I've read these jigdo checksum errors are normal when there's 
 >a new release?

No, it's a bug in jigdo-file. To workaround it put this

jigdoFile="jigdo-file --cache=$tmpDir/jigdo-cache.db --cache-expiry=1w --report=noprogress"

in jigdo-mirror.conf.in. It gets slower but works. This is what I sent
yesterday to the debian-cd mailing list:

Date: Sun, 8 Apr 2007 17:37:22 -0300
To: debian-cd@lists.debian.org
Subject: followup: jigdo template mdsum mismatch??
X-Mailer: VM 7.19 under Emacs 21.4.1

Looking at this portion of jigdo-mirror,

    # If possible, check md5sum of template data
    if test "$templateMD5"; then
        set -- `$jigdoFile md5sum --report=quiet "template"`
        if test "$1" = "$templateMD5"; then
            log "    Template checksum is correct"
        else
            log "    Error - template checksum mismatch"
            exitCode=1
            rm -f "image" "template"
            return 0
        fi
    else

$jigdoFile is "jigdo-file --cache=$tmpDir/jigdo-cache.db
--cache-expiry=1w --report=noprogress --no-check-files",

as usual (this is the default in jigdo-mirror). However when used with
--no-check-files jigdo-file does NOT produce any md5sum! Taking a
trace of jigdo-mirror I get this:

+ test OLshs7sHh08k63h8bLp8-Q   <-- This is the md5sum of the template,

++ jigdo-file --cache=/home/debian-cd-sync/alpha.cd/jigdo-cache.db --cache-expir
y=1w --report=noprogress --no-check-files md5sum --report=quiet template
+ set --
+ test '' = OLshs7sHh08k63h8bLp8-Q
+ log '    Error - template checksum mismatch'

This shows that jigdo-file is returning an empty checksum. Running
the command by hand does produce nothing, with an exit status of zero.
Removing the --no-check-files argument yields the correct checksum.

This is a bug in jigdo-file, for not ignoring the option when used
with a md5sum command, since the man page says "All options are
silently ignored if they are not applicable to the current command."



Reply to: