On 2014-09-02 14:01:43 -0500, Kai Harries wrote:
>    * What led up to the situation?
> $ cat simple-cdd.conf
> server="ftp.de.debian.org"
> debian_mirror="http://$server/debian/";
> wget_debian_mirror="ftp://$server/debian/";
> rsync_debian_mirror="$server::debian"
>
> $ simple-cdd --conf ./simple-cdd.conf --dist squeeze
>
>    * What was the outcome of this action?
> simple-cdd aborts with an error:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Checking checksum file... dists/squeeze/main/installer-
> amd64/current/images/SHA256SUMS
> sha256sum: standard input: no properly formatted SHA256 checksum lines found
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I definitely thought about how to handle that when I implemented that
feature, and decided to go for the simplicity of only supporting newer
releases. What about the following:

diff --git a/build-simple-cdd b/build-simple-cdd
index 70974ba..7f6038c 100755
--- a/build-simple-cdd
+++ b/build-simple-cdd
@@ -195,6 +195,7 @@ test -z "$simple_cdd_preseed" && 
simple_cdd_preseed="preseed/file=/cdrom/simple-
 test -z "$TASK" && TASK=$simple_cdd_temp/simple-cdd.task
 test -z "$keyring" && keyring=/usr/share/keyrings/debian-archive-keyring.gpg
 test -z "$user_gnupghome" && user_gnupghome="false"
+test -z "$checksum_file_type" && checksum_file_type="SHA256SUMS"
 
 # set path to include simple-cdd dirs
 simple_cdd_path=""
@@ -410,7 +411,7 @@ if [ "true" = "$do_mirror" ] || [ -z "$do_mirror" ] ; then
                 i386|amd64) di_match_files="/cdrom" ;;
                 *) di_match_files="." ;;
             esac
-            checksum_files="$checksum_files 
dists/$DI_CODENAME/main/installer-$a/$di_release/images/SHA256SUMS"
+            checksum_files="$checksum_files 
dists/$DI_CODENAME/main/installer-$a/$di_release/images/${checksum_file_type}"
         done
     fi
     # run mirroring hooks


I recall debian-cd having poor support for building images other than
the running distro, so you may also need to get fixes into debian-cd for
that to work... or run your builds in a chroot of compatible
distribution.


I'm not sure how much energy I want to put into support for oldstable in
general; I am not particularly fond of special casing on a
per-distribution level.


live well,
  vagrant

Attachment: pgpf1WCcfhHkf.pgp
Description: PGP signature

Reply via email to