[Simple-cdd-devel] Bug#760309: Bug#760309: simple-cdd: build of squeeze image fails due to missing images/SHA256SUMS file
Kai Harries
kai.harries at gmail.com
Fri Sep 5 19:07:36 UTC 2014
On Fri, Sep 5, 2014 at 7:43 PM, Vagrant Cascadian <vagrant at debian.org> wrote:
> 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.
OK, I tend to agree with you.
> 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 have not tested it, but it looks like a good solution.
>
> 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.
But then it would be nice if you mention it in the documentation
(sorry, if I have overseen it) and maybe even add a check that aborts
the build with an error message if someone tries to create
incompatible distributions with it.
Kind regards,
Kai
More information about the Simple-cdd-devel
mailing list