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

broken $MIRROR/dists/$CODENAME/Release file


It seems that that file is placed in the CD staging directory by the
script.  Unfortunately, it seems to leave the wrong sums in it triggering a very
ugly installation message from debootstrap:

!! ERROR: Debootstrap warning

Warning: file:///cdrom/dists/etch/main/binary-i386/Packages.gz was corrupt
[Press enter to continue]

rendering a non-intaractive installation an interactive installation and
leaving one with an uneasy feeling.  I thought I could just hack a fix in
by adding a DISC_FINISH_HOOK script in that would fix the sums.
Apparently, the sums are computed *AFTER* the DISC_FINISH_HOOK
has been run.  No way out.  Except, perhaps, to disentangle debian-cd
code to figure out where the check summing happens.  I tried grepping
for /Release in all the source, but did not find an obvious answer.  :(

If it helps any:

$ cd /tmp/mk-distro-b23096/simple-cdd/tmp/cd-build/etch/CD1/dists/etch/
$ cat Release
Suite: stable
Codename: etch
Date: Tue, 13 Nov 2007 19:15:39 +0000
Architectures: i386
Components: main
Description: mirror for etch
 8f4848988b542d4bcae9519f7dd1fd84   149981 main/binary-i386/Packages.gz
 31778b10ad5f2d3af64595d1d891a8d0       80 main/binary-i386/Release
 fc5b9c77631e9874c3df4a19de09422b   240977 main/binary-i386/Packages
 88cedc1a7e149c37afd591e8fafa592c    85203
 272283fef2ae939a996731c0b2703664   133207
$ md5sum main/binary-i386/Packages.gz main/binary-i386/Release \
> main/binary-i386/Packages main/debian-installer/binary-i386/Packages.gz \
> main/debian-installer/binary-i386/Packages
1088ffd228dd30660b56a58d44ae05d4  main/binary-i386/Packages.gz
31778b10ad5f2d3af64595d1d891a8d0  main/binary-i386/Release
fc5b9c77631e9874c3df4a19de09422b  main/binary-i386/Packages
88ec5bd00b0692c03868356350a6f5f6  main/debian-installer/binary-i386/Packages.gz
272283fef2ae939a996731c0b2703664  main/debian-installer/binary-i386/Packages
$ ls -go main/binary-i386/Packages.gz main/binary-i386/Release \
> main/binary-i386/Packages main/debian-installer/binary-i386/Packages.gz \
> main/debian-installer/binary-i386/Packages
-rw-r--r-- 1 240977 Nov 16 10:27 main/binary-i386/Packages
-rw-r--r-- 1  79115 Nov 16 10:27 main/binary-i386/Packages.gz
-rw-r--r-- 1     80 Nov 16 10:27 main/binary-i386/Release
-rw-r--r-- 1 133207 Nov 16 10:27 main/debian-installer/binary-i386/Packages
-rw-r--r-- 1  35110 Nov 16 10:27 main/debian-installer/binary-i386/Packages.gz

The uncompressed Packages files are correct, so it looks like they get
and yield a different sum.

Reply to: