Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1251357 > unrolled thread

Bug#1108455: debian-cd: Installer images include two versions of kernel udebs

Started byDaniel Lewart <lewart3@gmail.com>
First post2025-06-29 09:40 +0200
Last post2025-09-02 06:20 +0200
Articles 5 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1108455: debian-cd: Installer images include two versions of kernel udebs Daniel Lewart <lewart3@gmail.com> - 2025-06-29 09:40 +0200
    Bug#1108455: debian-cd: Installer images include two versions of kernel udebs Cyril Brulebois <kibi@debian.org> - 2025-06-29 14:20 +0200
    Bug#1108455: debian-cd: Installer images include two versions of kernel udebs Cyril Brulebois <kibi@debian.org> - 2025-06-30 22:10 +0200
      Bug#1108455: debian-cd: Installer images include two versions of kernel udebs Daniel Lewart <lewart3@gmail.com> - 2025-07-01 06:30 +0200
    Bug#1108455: debian-cd: Installer images include two versions of kernel udebs Daniel Lewart <lewart3@gmail.com> - 2025-09-02 06:20 +0200

#1251357 — Bug#1108455: debian-cd: Installer images include two versions of kernel udebs

FromDaniel Lewart <lewart3@gmail.com>
Date2025-06-29 09:40 +0200
SubjectBug#1108455: debian-cd: Installer images include two versions of kernel udebs
Message-ID<L2UNP-dXai-1@gated-at.bofh.it>
Package: debian-cd
Version: 3.2.2
Severity: normal
Tags: d-i patch

Dear Debian Images Team,

The Weekly build of the installer image for amd64 has grown by 4%:
  * 811597824 Jun 16 00:23 debian-testing-amd64-netinst.is0
  * 846200832 Jun 22 22:39 debian-testing-amd64-netinst.iso

This is caused by the following directory:
        pool/main/l/linux-signed-amd64
having two versions of each of the 29 kernel udebs.

The first five pairs:
  * btrfs-modules-6.12.32-amd64-di_6.12.32-1_amd64.udeb
  * btrfs-modules-6.12.33+deb13-amd64-di_6.12.33-1_amd64.udeb
  * crypto-dm-modules-6.12.32-amd64-di_6.12.32-1_amd64.udeb
  * crypto-dm-modules-6.12.33+deb13-amd64-di_6.12.33-1_amd64.udeb
  * crypto-modules-6.12.32-amd64-di_6.12.32-1_amd64.udeb
  * crypto-modules-6.12.33+deb13-amd64-di_6.12.33-1_amd64.udeb
  * drm-core-modules-6.12.32-amd64-di_6.12.32-1_amd64.udeb
  * drm-core-modules-6.12.33+deb13-amd64-di_6.12.33-1_amd64.udeb
  * ext4-modules-6.12.32-amd64-di_6.12.32-1_amd64.udeb
  * ext4-modules-6.12.33+deb13-amd64-di_6.12.33-1_amd64.udeb

Déjà vu:
    #1084789 - debian-testing-amd64-netinst.iso has multiple versions of module udebs
        https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1084789
which was fixed by debian-cd Commit deeff067:
    generate_di_list: Cope with package name changes in udeb packages.
        https://salsa.debian.org/images-team/debian-cd/-/commit/deeff067

However, linux Commit 706d933b:
    Include target Debian release number in ABI name
        https://salsa.debian.org/kernel-team/linux/-/commit/706d933b
causes the problem in this bug report.

Minimally tested patch below.

Thank you!
Daniel Lewart
Urbana, Illinois

diff -ru a/tools/generate_di_list b/tools/generate_di_list
--- a/tools/generate_di_list	2025-06-24 14:46:12.000000000 -0500
+++ b/tools/generate_di_list	2025-06-29 00:00:00.000000000 -0500
@@ -141,7 +141,7 @@
 		    # Append this driver udeb to a list for that kernel_ver
 		    push(@{ $driver_udebs{$kernel_ver} }, $udeb);

-		} elsif ($udeb =~ m/-modules-(\d+)\.(\d+)\.(\d+)-.*-di/) {
+		} elsif ($udeb =~ m/-modules-(\d+)\.(\d+)\.(\d+)(\+deb\d+)?-.*-di$/) {
 		    # Newer udeb package names don't, so use "0" as a dummy value here
 		    my $kernel_ver = di_ker_abi_to_number($1, $2, $3, 0);
 		    if ($kernel_ver > $highest_kernel_ver) {

[toc] | [next] | [standalone]


#1251384

FromCyril Brulebois <kibi@debian.org>
Date2025-06-29 14:20 +0200
Message-ID<L2ZaN-e08e-3@gated-at.bofh.it>
In reply to#1251357

[Multipart message — attachments visible in raw view] — view raw

Hi,

Daniel Lewart <lewart3@gmail.com> (2025-06-29):
> However, linux Commit 706d933b:
>     Include target Debian release number in ABI name
>         https://salsa.debian.org/kernel-team/linux/-/commit/706d933b
> causes the problem in this bug report.

Full backstory:
  https://salsa.debian.org/kernel-team/linux/-/merge_requests/1524


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

[toc] | [prev] | [next] | [standalone]


#1251494

FromCyril Brulebois <kibi@debian.org>
Date2025-06-30 22:10 +0200
Message-ID<L3sZb-ejmN-9@gated-at.bofh.it>
In reply to#1251357

[Multipart message — attachments visible in raw view] — view raw

Hi,

Daniel Lewart <lewart3@gmail.com> (2025-06-29):
> The Weekly build of the installer image for amd64 has grown by 4%:
>   * 811597824 Jun 16 00:23 debian-testing-amd64-netinst.is0
>   * 846200832 Jun 22 22:39 debian-testing-amd64-netinst.iso

That happens when building images from d-i daily builds, built against
sid. That doesn't happen when building against an official d-i, built
against testing.

I'd prefer not merging this patch before the upcoming D-I Trixie RC 2,
just to be on the safe side of things.

> diff -ru a/tools/generate_di_list b/tools/generate_di_list
> --- a/tools/generate_di_list	2025-06-24 14:46:12.000000000 -0500
> +++ b/tools/generate_di_list	2025-06-29 00:00:00.000000000 -0500
> @@ -141,7 +141,7 @@
>  		    # Append this driver udeb to a list for that kernel_ver
>  		    push(@{ $driver_udebs{$kernel_ver} }, $udeb);
> 
> -		} elsif ($udeb =~ m/-modules-(\d+)\.(\d+)\.(\d+)-.*-di/) {
> +		} elsif ($udeb =~ m/-modules-(\d+)\.(\d+)\.(\d+)(\+deb\d+)?-.*-di$/) {

I don't think we'll have cases where we have +deb13 vs. +deb14, with the
exact same upstream version, so I suppose it doesn't really make sense
to try and capture the last digits and reinject them below:

>  		    # Newer udeb package names don't, so use "0" as a dummy value here
>  		    my $kernel_ver = di_ker_abi_to_number($1, $2, $3, 0);
>  		    if ($kernel_ver > $highest_kernel_ver) {

… but I'm making a note of it anyway.


With my easy-build.sh-based setup, targetting NETINST (much smaller than
STICK1GB), I'm indeed getting an FTBFS due to lack of space, having both
sets of packages. With this patch, the problem goes away, and the image
can be generated successfully.


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

[toc] | [prev] | [next] | [standalone]


#1251545

FromDaniel Lewart <lewart3@gmail.com>
Date2025-07-01 06:30 +0200
Message-ID<L3AN4-eoz2-37@gated-at.bofh.it>
In reply to#1251494

[Multipart message — attachments visible in raw view] — view raw

Cyril, et al,

On Mon, Jun 30, 2025 at 3:08 PM Cyril Brulebois <kibi@debian.org> wrote:
>
> Hi,
>
> Daniel Lewart <lewart3@gmail.com> (2025-06-29):
> > The Weekly build of the installer image for amd64 has grown by 4%:
> >   * 811597824 Jun 16 00:23 debian-testing-amd64-netinst.is0
> >   * 846200832 Jun 22 22:39 debian-testing-amd64-netinst.iso
>
> That happens when building images from d-i daily builds, built against
> sid. That doesn't happen when building against an official d-i, built
> against testing.
>
> I'd prefer not merging this patch before the upcoming D-I Trixie RC 2,
> just to be on the safe side of things.

Yes, totally reasonable.

> > diff -ru a/tools/generate_di_list b/tools/generate_di_list
> > --- a/tools/generate_di_list  2025-06-24 14:46:12.000000000 -0500
> > +++ b/tools/generate_di_list  2025-06-29 00:00:00.000000000 -0500
> > @@ -141,7 +141,7 @@
> >                   # Append this driver udeb to a list for that
kernel_ver
> >                   push(@{ $driver_udebs{$kernel_ver} }, $udeb);
> >
> > -             } elsif ($udeb =~ m/-modules-(\d+)\.(\d+)\.(\d+)-.*-di/) {
> > +             } elsif ($udeb =~
m/-modules-(\d+)\.(\d+)\.(\d+)(\+deb\d+)?-.*-di$/) {
>
> I don't think we'll have cases where we have +deb13 vs. +deb14, with the
> exact same upstream version, so I suppose it doesn't really make sense
> to try and capture the last digits and reinject them below:
>
> >                   # Newer udeb package names don't, so use "0" as a
dummy value here
> >                   my $kernel_ver = di_ker_abi_to_number($1, $2, $3, 0);
> >                   if ($kernel_ver > $highest_kernel_ver) {
>
> … but I'm making a note of it anyway.

So line 144 can instead be changed to the following:
        } elsif ($udeb =~
m/-modules-(\d+)\.(\d+)\.(\d+)(?:\+deb\d+)?-.*-di$/) {

> With my easy-build.sh-based setup, targeting NETINST (much smaller than
> STICK1GB), I'm indeed getting an FTBFS due to lack of space, having both
> sets of packages. With this patch, the problem goes away, and the image
> can be generated successfully.

Excellent.

Thank you!
Daniel Lewart
Urbana, Illinois

[toc] | [prev] | [next] | [standalone]


#1259424

FromDaniel Lewart <lewart3@gmail.com>
Date2025-09-02 06:20 +0200
Message-ID<LqqEV-ca4Y-1@gated-at.bofh.it>
In reply to#1251357

[Multipart message — attachments visible in raw view] — view raw

Cyril, et al,

The Weekly build of the installer image for amd64 just grew by exactly 5%:
  * 859832320 Aug 25 01:08 debian-testing-amd64-netinst.is0
  * 902823936 Sep  1 03:25 debian-testing-amd64-netinst.iso

This is caused by the following directory:
        pool/main/l/linux-signed-amd64
having two versions of each of the 29 kernel udebs.

The three largest pairs:
  * 10826124 Jul 17 11:22
nic-wireless-modules-6.12.38+deb13-amd64-di_6.12.38-1_amd64.udeb
  * 11748668 Aug 26 13:25
nic-wireless-modules-6.16.3+deb14-amd64-di_6.16.3-1_amd64.udeb
  *  8264572 Jul 17 11:22
nic-modules-6.12.38+deb13-amd64-di_6.12.38-1_amd64.udeb
  *  8872256 Aug 26 13:25 nic-modules-6.16.3+deb14-amd64-di_6.16.3-1_amd64.udeb
  *  7752324 Jul 17 11:22
sound-modules-6.12.38+deb13-amd64-di_6.12.38-1_amd64.udeb
  *  8215428 Aug 26 13:25
sound-modules-6.16.3+deb14-amd64-di_6.16.3-1_amd64.udeb

My new, improved tools/generate_di_list patch is attached, which:
  * Matches newest Kernel module ABI names, while keeping Perl::Critic happy
  * Sorts udeb names to create deterministic output
  * Comment that the ARCHES variable needs to be preset too
  * Removes trailing space
  * Indicates which package file is missing

Thank you!
Daniel Lewart
Urbana, Illinois

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web