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

Re: Any way to add some redirects on cdimage.d.o?



Hello Steve, Mattias,

On 10/06/2025 11:26, Mattias Wadenstein wrote:
Hey, sorry for the late answer, been very busy days. We're good with running apache rewrite rules that can do redirects, but I don't think I'm going to get hours to do make good rules before the fall due to VAC.

Let me try to help and provide some URLs that are currently in use:

Upstream osinfo-db [1] points towards:

https://cdimage.debian.org/cdimage/release/12.11.0/amd64/iso-cd/debian-12.11.0-amd64-netinst.iso

And the current Debian package [2] points towards:
https://cdimage.debian.org/cdimage/release/12.9.0/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso

In addition to the version numbers, there is also a variant for architecture (amd64, i386, arm64, armhf, ppc64el, s390x) and medium (dvd-1 vs netinst)

The cloud team already uses a more generic URL:
https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2

So can the stable become like (removing all duplicates in the paths, and keeping a much as possible in the filename):
https://cdimage.debian.org/cdimage/release/debian-12-amd64-netinst.iso

In pseudo-Apache2 syntax (unverified):
```
RedirectMatch 302 /cdimage/release/debian-12-(.+)-netinst.iso /cdimage/release/12.11.0/\1/iso-cd/debian-12.11.0-\1-netinst.iso RedirectMatch 302 /cdimage/release/debian-12-(.+)-DVD-1.iso /cdimage/release/12.11.0/\1/iso-dvd/debian-12.11.0-\1-DVD-1.iso
```

This still needs to be updated for every point release, but at least the end users will be able to download the most recent released ISO images and we don't need to have updated osinfo-db packages.

With kind regards,
Roland Clobus

[1] https://gitlab.com/libosinfo/osinfo-db -> data/os/debian.org/debian-12.xml.in
[2] https://sources.debian.org/src/osinfo-db/0.20250124-1/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Reply to: