Hi,

Quoting Roman Lebedev (2025-12-10 00:36:05)
> There's https://packages.debian.org/sid/libdistro-info-perl
> Should it be used to detect which distro it is?

how would it be able to do that? All we have at that point is the user
arguments.

And another question that I forgot to ask: is the ubuntu kernel named the same
independent of the architecture?

Quoting Christian Kastner (2025-12-10 00:37:50)
> A cursory examination of the URIs all have  "ubuntu" somewhere in their
> name, so the check would return true

Not true. There is https://mirror.famaserver.com/archive/ or
https://mirror.maeen.sa/apt-mirror/ There are also "mis-spelling" of ubuntu
like rsync://mirror.flokinet.net/ubntu/ and there are spellings with the first
letter upper-case http://mirrors.arpnetworks.com/Ubuntu/

> Though not impossible, I think it very unlikely that there will be many false
> positives, ie: a non-Ubuntu URI would containing "ubuntu".

The test has both false positives and false negatives. It's a bad test. It is
maybe a good heuristic but if one adds a heuristic to software, then one must
also add a way to override it.

There is also another option: convince Debian kernel maintainers to add
linux-image-virtual to their list of meta-packages and let it depend on the
right meta-package depending on the architecture. Then both
autopkgtest-virt-qemu as well as mmdebstrap-autopkgtest-build-qemu could
simplify their code and just depend on linux-image-virtual.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to