#1143979 grub.cfg not updated with "remove" and "autoremove"

Package:
linux-image-rt-amd64
Source:
linux-image-rt-amd64
Description:
Linux for 64-bit PCs (meta-package)
Submitter:
Philipp Marek
Date:
2026-08-09 18:55:03 UTC
Severity:
normal
#1143979#5
Date:
2026-08-09 09:07:54 UTC
From:
To:
(This may be the wrong package to report the bug against.?)

My fingers are used to install/remove the "linux-image-rt-amd64"
package; yeah, some files were split into a linux-binary,
still the muscle memory remains.

I just installed a new kernel via

    # apt-get install linux-image-rt-amd64 -t unstable

and dropped an old one via

    # apt-get install linux-image-7.0.10+deb14-rt-amd64-

which said (excuse my German)

    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    Auflösen von Abhängigkeiten… Fertig
    Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
      libabsl20260107 libntfs-3g89t64 libopencolorio2.1t64 libpassim1 libperl5.40 libyaml-cpp0.8 linux-base-7.0.10+deb14-rt-amd64 linux-binary-7.0.10+deb14-rt-amd64 linux-headers-7.0.10+deb14-common linux-headers-7.0.10+deb14-rt-amd64
      linux-kbuild-7.0.10+deb14 linux-modules-7.0.10+deb14-rt-amd64 myspell-fa perl-modules-5.40
    Verwenden Sie »apt autoremove«, um sie zu entfernen.
    Die folgenden Pakete werden ENTFERNT:
      linux-image-7.0.10+deb14-rt-amd64
    0 aktualisiert, 0 neu installiert, 1 zu entfernen und 179 nicht aktualisiert.
    Nach dieser Operation werden 15,4 kB Plattenplatz freigegeben.
    Möchten Sie fortfahren? [J/n]
    (Lese Datenbank ... 682705 Dateien und Verzeichnisse sind derzeit installiert.)
    Entfernen von linux-image-7.0.10+deb14-rt-amd64 (7.0.10-1) ...
    /etc/kernel/prerm.d/dkms:
    dkms: removing module evdi/1.15.0+dfsg for kernel 7.0.10+deb14-rt-amd64 (x86_64)
    Module evdi/1.15.0+dfsg for kernel 7.0.10+deb14-rt-amd64 (x86_64):
    Before uninstall, this module version was ACTIVE on this kernel.
    Deleting /lib/modules/7.0.10+deb14-rt-amd64/updates/dkms/evdi.ko.xz

    Running depmod... done.
    /etc/kernel/postrm.d/initramfs-tools:
    update-initramfs: Deleting /boot/initrd.img-7.0.10+deb14-rt-amd64
    /etc/kernel/postrm.d/zz-update-grub:
    Generating grub configuration file ...
    Found background image: .background_cache.png
    Found linux image: /boot/vmlinuz-7.1.7+deb14-rt-amd64
    Found initrd image: /boot/initrd.img-7.1.7+deb14-rt-amd64
    Found linux image: /boot/vmlinuz-7.1.3+deb14-rt-amd64
    Found initrd image: /boot/initrd.img-7.1.3+deb14-rt-amd64
    Found linux image: /boot/vmlinuz-7.0.10+deb14-rt-amd64
    Warning: os-prober will not be executed to detect other bootable partitions.
    Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.
    Adding boot menu entry for UEFI Firmware Settings ...
    done

Please note that the initrd was removed; the kernel binary is still
kept in grub.cfg, without an initrd.
This (probably?) won't work, as my root filesystem is on btrfs, which is
a kernel module and not built-in - and then there's LVM, LUKS, etc.

I understand that whether an arbitrary installation might still boot
without an initrd might be a hard question to answer --
but while it can't be ruled out, the probabilities are against it,
right?

So, I guess the kernel-only boot option should be removed?


A following

    # apt-get autoremove

drops the linux-binary-7.0.10+deb14-rt-amd64 (and some more) but --
and this is the initial reason for this bug report -- "update-grub"
isn't called at that time:

    Paketlisten werden gelesen… Fertig
    Abhängigkeitsbaum wird aufgebaut… Fertig
    Statusinformationen werden eingelesen… Fertig
    Auflösen von Abhängigkeiten… Fertig
    Die folgenden Pakete werden ENTFERNT:
      libabsl20260107 libntfs-3g89t64 libopencolorio2.1t64 libpassim1 libperl5.40 libyaml-cpp0.8 linux-base-7.0.10+deb14-rt-amd64 linux-binary-7.0.10+deb14-rt-amd64 linux-headers-7.0.10+deb14-common linux-headers-7.0.10+deb14-rt-amd64
      linux-kbuild-7.0.10+deb14 linux-modules-7.0.10+deb14-rt-amd64 myspell-fa perl-modules-5.40
    0 aktualisiert, 0 neu installiert, 14 zu entfernen und 179 nicht aktualisiert.
    Nach dieser Operation werden 259 MB Plattenplatz freigegeben.
    Möchten Sie fortfahren? [J/n]
    (Lese Datenbank ... 682702 Dateien und Verzeichnisse sind derzeit installiert.)
    Entfernen von libabsl20260107:amd64 (20260107.0-5) ...
    Entfernen von libntfs-3g89t64:amd64 (1:2026.2.25-1) ...
    Entfernen von libopencolorio2.1t64:amd64 (2.1.3+dfsg-2+b4) ...
    Entfernen von libpassim1:amd64 (0.1.10-3+b1) ...
    Entfernen von libperl5.40:amd64 (5.40.1-8) ...
    Entfernen von libyaml-cpp0.8:amd64 (0.8.0+dfsg-9+b1) ...
    Entfernen von linux-binary-7.0.10+deb14-rt-amd64 (7.0.10-1) ...
    Entfernen von linux-modules-7.0.10+deb14-rt-amd64 (7.0.10-1) ...
    Entfernen von linux-headers-7.0.10+deb14-rt-amd64 (7.0.10-1) ...
    Entfernen von linux-headers-7.0.10+deb14-common (7.0.10-1) ...
    Entfernen von linux-kbuild-7.0.10+deb14 (7.0.10-1) ...
    Entfernen von myspell-fa (0.20260711) ...
    Entfernen von perl-modules-5.40 (5.40.1-8) ...
    Entfernen von linux-base-7.0.10+deb14-rt-amd64 (7.0.10-1) ...
    Trigger für man-db (2.13.1-1) werden verarbeitet ...
    Trigger für libc-bin (2.42-17) werden verarbeitet ...

and so the broken kernel-only boot option persists,
and this is a bug for sure.