• Bug#1108089: grub-efi-amd64,linux-image-amd64: system fails to boot bec

    From Sean Whitton@1:229/2 to All on Fri Jun 20 15:00:01 2025
    XPost: linux.debian.bugs.dist
    From: spwhitton@spwhitton.name

    Package: grub-efi-amd64,linux-image-amd64
    Severity: important

    Dear maintainers,

    I had kernel 6.12.27 running. I just upgraded to kernel 6.12.32. My system then did not boot by itself because the grub config still contained entries
    for 6.12.31, which had been autoremoved. I could recover by booting the old 6.12.27 and then doing a manual 'update-grub'.

    I see this in my /var/log/apt/term.log:

    Log started: 2025-06-20 13:29:34
    (Reading database ...
    (Reading database ... 5%
    (Reading database ... 10%
    (Reading database ... 15%
    (Reading database ... 20%
    (Reading database ... 25%
    (Reading database ... 30%
    (Reading database ... 35%
    (Reading database ... 40%
    (Reading database ... 45%

    (Reading database ... 50%
    (Reading database ... 55%
    (Reading database ... 60%
    (Reading database ... 65%
    (Reading database ... 70%
    (Reading database ... 75%
    (Reading database ... 80%
    (Reading database ... 85%
    (Reading database ... 90%
    (Reading database ..
    . 95%
    (Reading database ... 100%
    (Reading database ... 618410 files and directories currently installed.)

    Preparing to unpack .../initramfs-tools_0.148.2_all.deb ...

    Unpacking initramfs-tools (0.148.2) over (0.147) ...

    Preparing to unpack .../initramfs-tools-core_0.148.2_all.deb ...

    Unpacking initramfs-tools-core (0.148.2) over (0.147) ...

    Selecting previously unselected package initramfs-tools-bin.

    Preparing to unpack .../initramfs-tools-bin_0.148.2_amd64.deb ...

    Unpacking initramfs-tools-bin (0.148.2) ...

    Selecting previously unselected package linux-image-6.12.32-amd64.

    Preparing to unpack .../linux-image-6.12.32-amd64_6.12.32-1_amd64.deb ...

    Unpacking linux-image-6.12.32-amd64 (6.12.32-1) ...

    Preparing to unpack .../linux-image-amd64_6.12.32-1_amd64.deb ...

    Unpacking linux-image-amd64 (6.12.32-1) over (6.12.31-1) ...

    Setting up initramfs-tools-bin (0.148.2) ...

    Setting up initramfs-tools-core (0.148.2) ...

    Setting up initramfs-tools (0.148.2) ...

    update-initramfs: deferring update (trigger activated)

    Setting up linux-image-6.12.32-amd64 (6.12.32-1) ...

    I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.12.31-amd64

    I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.31-amd64

    I: /vmlinuz is now a symlink to boot/vmlinuz-6.12.32-amd64

    I: /initrd.img is now a symlink to boot/initrd.img-6.12.32-amd64

    /etc/kernel/postinst.d/initramfs-tools:

    update-initramfs: Generating /boot/initrd.img-6.12.32-amd64

    I: The initramfs will attempt to resume from /dev/dm-2

    I: (/dev/mapper/vg_zephyr-lv_zephyr_swap)

    I: Set the RESUME variable to override this.

    Setting up linux-image-amd64 (6.12.32-1) ...

    Processing triggers for man-db (2.13.1-1) ...

    Processing triggers for initramfs-tools (0.148.2) ...

    update-initramfs: /boot/initrd.img-6.12.32-amd64 has already been updated since Fri 20 Jun 2025 13:29:37 BST.

    Log ended: 2025-06-20 13:29:52

    --
    Sean Whitton

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmhVWMsACgkQaVt65L8G YkCTyQ/+LXa11kB8rg8U9Mh8J/ifooTihR7oFRuTVLKr0TgOsbmoDUet8eLNWJTQ 1dvaKSLdqXLdn0YO4/6uZmvxAUxxaL1X3bTsq3YFCBv8ix6NhHF0gFczSp8S7hAl eLFs5/Vf+3kFtI35SCeDvWioUU7F/WEJjsYMAs7ON2Q4CSAFXnnBnkuRWaYOdgBv fW/j5bnyD9+/Z6cjNrGKln/fIGET9SnK2HhygwYF16ZnAugdEy9TXF98rU9kMIXs JjhY25KiSHhtaHwIQetgBA52ohJyC5LRaTydR3hjDu1S5jRJHen/KhpybogiWRgs Pe3MkSehdFopOUAekQhWAQwX6or8Xh3r4ZzxtSRE3LRxOykD4XgWuolzGRdCtlel MxpjgAy0WeWFUP+msClOTtssN000jnOT/PozgoDaA3Y76Vun6bqQoyHkECoflWif AFOIvxauB8XeRHV6dtBswlklP2vMzj0ukGs/EixdSILTrUfown33QktLoNpetJ+1 TaOTA5LtMmmmyVViH1HFAaNAkE949as/fP6fig28gdftfj7z5IiZTyCl5CW5jRyD Z1yRVWCu/YvIZP7WRvHqP5795EtxNPRLlRtSOucBPJf8LIzHB3Aw8QSAKXkdY40d SmleSncJJVB2VIP7NiGpTr3YqDZccEwh3494uGlj6pjNm4VOsA0=
    =29HV
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Felix Zielcke@1:229/2 to All on Fri Jun 20 15:30:01 2025
    XPost: linux.debian.bugs.dist
    From: fzielcke@z-51.de

    Am Freitag, dem 20.06.2025 um 13:49 +0100 schrieb Sean Whitton:
    Package: grub-efi-amd64,linux-image-amd64
    Severity: important

    Dear maintainers,

    I had kernel 6.12.27 running.  I just upgraded to kernel 6.12.32.  My system
    then did not boot by itself because the grub config still contained
    entries
    for 6.12.31, which had been autoremoved.  I could recover by booting
    the old
    6.12.27 and then doing a manual 'update-grub'.

    I see this in my /var/log/apt/term.log:

    [...]

    Hi Sean,

    strange that update-grub isn't at all run.

    Do you have /etc/kernel/postinst.d/zz-update-grub?
    It should be installed by grub2-common.

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Sean Whitton@1:229/2 to Felix Zielcke on Fri Jun 20 16:40:01 2025
    XPost: linux.debian.bugs.dist
    From: spwhitton@spwhitton.name

    Hello,

    On Fri 20 Jun 2025 at 03:15pm +02, Felix Zielcke wrote:

    Am Freitag, dem 20.06.2025 um 13:49 +0100 schrieb Sean Whitton:
    Package: grub-efi-amd64,linux-image-amd64
    Severity: important

    Dear maintainers,

    I had kernel 6.12.27 running.  I just upgraded to kernel 6.12.32.  My
    system
    then did not boot by itself because the grub config still contained
    entries
    for 6.12.31, which had been autoremoved.  I could recover by booting
    the old
    6.12.27 and then doing a manual 'update-grub'.

    I see this in my /var/log/apt/term.log:

    [...]

    Hi Sean,

    strange that update-grub isn't at all run.

    Do you have /etc/kernel/postinst.d/zz-update-grub?
    It should be installed by grub2-common.

    I have /etc/kernel/postinst.d/zz-update-grub.dpkg-dist only.

    Reinstalling grub2-common does not fix the problem.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmhVcBIZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQLFgD/4kp415HT34FXN39O4YqZ6C vyWPT95w/GnB1CHsAjtCJGJ5X9je8FZuppbwsTjY5WyHRaHdKWvp6VJVBhlnJ1Z/ toyN14lkCUlnnSHbrDMXmcyhV7BIbiJdMH0agRK5nBJ2Iv6Zg2HO/sbqiQxS1ML9 ghCNPcxfqkd7V7Dw6pHiXLtJX6MDHm4Il8GIlLov3gHa2l9A8KqZC9XB2ymrnwd4 ICSIEUXSV2rmZQ61NSDZcDPudHi00I0FKvBzkGThPFiqXz5Q75sr8KH5vi8qxGxk xeiKCqqMG2YzRTKBA4Ctl6zA+q5sG5sWJYfZfcEedH0skQioSHjqa5uiB6ARdRmp QeygORMPqpDME7fumFh1L1RdJeBYskn0IWbDV6Xf2kDoJ/YWNCjxewl0y4VU59GU W00jR1ysqIHHJvuUx2cQfrRzLlamzwZKOw2LMwr0nyAiNKxmsVInzmN6H906m7/Y PRnTw/69MjjVQah68n2hdJs+qfjFiVEzeeNdTPp4+9U2sq2p4f/l2a/GGOjFOJ4C nBDpa7eCcFb/Rm7qHML30++v59dxWJgc1uN3WIG1kBEqKcc4ShHof0yjsJRe4xpV LnlL0OhiYoPDligpUXTerRP4OK6srzkYI+e0svvnR3JF8X5Z31LR3DPr48eF7tzM 6QFJS/5XYLN+A0sPy/8GAQ=žLW
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot
  • From Felix Zielcke@1:229/2 to All on Fri Jun 20 18:10:02 2025
    XPost: linux.debian.bugs.dist
    From: fzielcke@z-51.de

    Am Freitag, dem 20.06.2025 um 15:28 +0100 schrieb Sean Whitton:
    Hello,

    [...]

    I have /etc/kernel/postinst.d/zz-update-grub.dpkg-dist only.

    Reinstalling grub2-common does not fix the problem.

    This is very strange.
    zz-update-grub is just a normal dpkg conffile. We don't do anything
    special with it.
    And according to our git, it wast last changed 2021.

    I guess to fix that with dpkg you would need to completely purge the
    package and then reinstall. But please make a backup of
    /etc/default/grub

    Or you could check if the dpkg-dist is the correct one and just rename
    that.

    Also check /etc/kernel/postrm.d/
    Looks like there it's also missing or with the .dpkg-dist extension.

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Colin Watson@1:229/2 to Felix Zielcke on Fri Jun 20 18:20:01 2025
    XPost: linux.debian.bugs.dist
    From: cjwatson@debian.org

    On Fri, Jun 20, 2025 at 06:04:26PM +0200, Felix Zielcke wrote:
    Am Freitag, dem 20.06.2025 um 15:28 +0100 schrieb Sean Whitton:
    I have /etc/kernel/postinst.d/zz-update-grub.dpkg-dist only.

    Reinstalling grub2-common does not fix the problem.

    This is very strange.
    zz-update-grub is just a normal dpkg conffile. We don't do anything
    special with it.
    And according to our git, it wast last changed 2021.

    I guess to fix that with dpkg you would need to completely purge the
    package and then reinstall.

    dpkg doesn't reinstall removed conffiles by default (it interprets that
    as a deliberate user change), but you can override that using
    --force-confmiss.

    --
    Colin Watson (he/him) [cjwatson@debian.org]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Sean Whitton@1:229/2 to All on Sat Jun 21 12:40:01 2025
    XPost: linux.debian.bugs.dist
    From: spwhitton@spwhitton.name

    control: reopen -1

    Hello,

    I definitely did not remove the file myself. Therefore, it is a bug
    somewhere that it got deleted by something about the package upgrade.

    One thing that seems notable to me is that the apt log I posted has a
    message about an initrd image having "already been updated". I have not
    seen this message before. HTH.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmhWi5AZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQBz3EACaE6PZMIw85J1TUipv0Bl5 G63QkyQ1rKCa8umS2NHjXOMzUeuerMMVUZtyIqAe5IEcJQ/+OzbTh+mBO+LuTRJ1 8AUNzwwGuBVcbQ+GKbYKc2pFM/pJ760M3YRT3N7yDYiLIIkr/eBFLN0Zfr4BJcWM c5Y45XNTiNaDc6RBSkvjRwnilnHYFGu3KvH047VL7V0zNXiAF3NPdkmiZvROJeJ4 GWAGfxt8tu1NQeMA3KKiI0WGB1u1ZmPDUMMC2zW6rNwRPrHUsfIS7aUzOCLwG6t/ XwGOCRMmebPcrY5ATI738Oo6FKjevNW0LBVJouceLY/E+xtKDrPk6tnRoC4nWqDr 6bfg5gK5yOlOZ4InBWpdDCf8MJWQE0YG4WugJFhLhri00uiUyD0GDoPB9DLOPMkl S7RIYvATGd2mlrDpEkRZQJfHVIsQq84HUsB9nxsfF2e75FBzS5hf+RHgShc3fGY3 aF7ctKFVAd5pdJNBodYG01Ijrm2EtLPXBZBNV52Vhlbb8SVXpHPaCBiaYNkIBKSI cpJh+vlOyxltAt/kKBV8CdW/8OtBMwH5KXRy8OHZRy4Sd/2bIB0A2VmQpMlxT8/m dbgeeIbWAWFB/vJ8FcdR74+46qSKpjG6lbY47ToUR23/lBYe+vwJPxeKfT1mxinN 5UQ4p/6bsdLJeqkeK8q0mQ==jVCx
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you canno
  • From Sean Whitton@1:229/2 to Felix Zielcke on Sat Jun 21 12:40:01 2025
    XPost: linux.debian.bugs.dist
    From: spwhitton@spwhitton.name

    Hello,

    On Fri 20 Jun 2025 at 06:04pm +02, Felix Zielcke wrote:

    Also check /etc/kernel/postrm.d/
    Looks like there it's also missing or with the .dpkg-dist extension.

    Yes, in that directory too it is there but only with a .dpkg-dist
    extension.

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmhWi7YZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQKGwD/9g7a7bVGOaos+rlMHMWlcX 8Nk9S6kT40Ym5e/xmFxbOuJyVNxUV/aL3zTXybKkWO5X2bRpFlWXXZV9IcpB+CTX 8k1eaFe6MsJMQZJ5xBsfL8ozlYAb5uCmowEHsv4alsRdlUVxGRl4bAG6xWZMlHDT o1FkN+0BH5+ahrUTviNF/J1oaWUKjLPHp3dRVi0beIYbwCDTVHQi798NVKKYJ5L9 n+DSXl8P3ssQtnJA9WkMIKgH+sdgbY02427P7HXRlZi8CP2r42FNr+j/Cuayo1/f ttpznRFiHo9q0NS+ddreADF6YwfzR6C5z0hLP5zg6Gn8R9z95SSotpVkPinYynie 3aDjNVdwrZQZybZJm1dchwqeXElNEp5E4yGh3kGGS3xTdplgm6ud12Bbaqwbqxqh Bcx5HxYJ4ljhIZdhDYBgl190w0gQ/KJ+/SNhnqA8fNa25ZhFnlXV2NuPU89DRXVF 6w7hwYLlzjG8clkojfrrp1PIqbxDv/iItQEglPsvMRg0SRTk7aVMS0pR5UEoJ8C4 jmvukY0Q0tqRzQQ6/EIG3mxy4cStUV99ueZ4JnAsfAzL/B7JDhSu4g6Xi8+HmeKO kDODgflMuPDafL3x8eMd4/iRk0bxrnANSbszwoyklnjh4Az/FVWmjn9vakB7mvsO eaRsGZv6VO8pZRJK95bHYQ==lo4o
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you canno
  • From Bastian Blank@1:229/2 to Sean Whitton on Sat Jun 21 14:00:01 2025
    XPost: linux.debian.bugs.dist
    From: waldi@debian.org

    On Sat, Jun 21, 2025 at 11:38:46AM +0100, Sean Whitton wrote:
    On Fri 20 Jun 2025 at 06:04pm +02, Felix Zielcke wrote:
    Also check /etc/kernel/postrm.d/
    Looks like there it's also missing or with the .dpkg-dist extension.
    Yes, in that directory too it is there but only with a .dpkg-dist
    extension.

    Neither maintainer scripts of linux nor grub2 contain code that could
    remove just /etc/kernel/post{inst,rm}.d/zz-upgrade-grub, which is what
    you claim you see. Please provide evidence instead of paraphrasing.

    Aka:
    - dpkg -s grub2-common
    - ls -alR /etc
    - grep -r /etc/kernel /var/lib/dpkg/info
    - zgrep /etc/kernel /var/log/apt/*

    Also code search does not find anything else targeting the
    zz-upgrade-grub files specifically.

    Bastian

    --
    No one can guarantee the actions of another.
    -- Spock, "Day of the Dove", stardate unknown

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Sean Whitton@1:229/2 to Bastian Blank on Sun Jun 22 18:30:02 2025
    XPost: linux.debian.bugs.dist
    From: spwhitton@spwhitton.name

    Hello,

    On Sat 21 Jun 2025 at 01:46pm +02, Bastian Blank wrote:

    On Sat, Jun 21, 2025 at 11:38:46AM +0100, Sean Whitton wrote:
    On Fri 20 Jun 2025 at 06:04pm +02, Felix Zielcke wrote:
    Also check /etc/kernel/postrm.d/
    Looks like there it's also missing or with the .dpkg-dist extension.
    Yes, in that directory too it is there but only with a .dpkg-dist
    extension.

    Neither maintainer scripts of linux nor grub2 contain code that could
    remove just /etc/kernel/post{inst,rm}.d/zz-upgrade-grub, which is what
    you claim you see. Please provide evidence instead of paraphrasing.

    Okay.

    Aka:
    - dpkg -s grub2-common

    --8<---------------cut here---------------start------------->8---
    Package: grub2-common
    Status: install ok installed
    Priority: optional
    Section: admin
    Installed-Size: 1404
    Maintainer: GRUB Maintainers <pkg-grub-devel@alioth-lists.debian.net> Architecture: amd64
    Multi-Arch: foreign
    Source: grub2
    Version: 2.12-8
    Replaces: grub, grub-cloud-amd64 (<< 0.0.4), grub-common (<< 1.99-1), grub-coreboot (<< 2.02+dfsg1-7), grub-doc (<< 0.97-32), grub-efi-amd64 (<< 2.02+dfsg1-7), grub-efi-arm (<< 2.02+dfsg1-7), grub-efi-arm64 (<< 2.02+dfsg1-7), grub-efi-ia32 (<< 2.02+dfsg1-
    7), grub-efi-ia64 (<< 2.02+dfsg1-7), grub-ieee1275 (<< 2.02+dfsg1-7), grub-legacy, grub-legacy-doc (<< 0.97-59), grub-pc (<< 2.02+dfsg1-7), grub-uboot (<< 2.02+dfsg1-7), grub-xen (<< 2.02+dfsg1-7), grub-yeeloong (<< 2.02+dfsg1-7)
    Depends: grub-common (= 2.12-8), dpkg (>= 1.15.4), libc6 (>= 2.38), libdevmapper1.02.1 (>= 2:1.02.197), libefiboot1t64 (>= 38), libefivar1t64 (>= 38), liblzma5 (>= 5.1.1alpha+20120614)
    Breaks: grub (<< 0.97-54), grub-cloud-amd64 (<< 0.0.4), grub-coreboot (<< 2.02+dfsg1-7), grub-doc (<< 0.97-32), grub-efi-amd64 (<< 2.02+dfsg1-7), grub-efi-arm (<< 2.02+dfsg1-7), grub-efi-arm64 (<< 2.02+dfsg1-7), grub-efi-ia32 (<< 2.02+dfsg1-7), grub-efi-
    ia64 (<< 2.02+dfsg1-7), grub-ieee1275 (<< 2.02+dfsg1-7), grub-legacy (<< 0.97-83~), grub-legacy-doc (<< 0.97-59), grub-pc (<< 2.02+dfsg1-7), grub-uboot (<< 2.02+dfsg1-7), grub-xen (<< 2.02+dfsg1-7), grub-yeeloong (<< 2.02+dfsg1-7), shim (<< 0.9+
    1474479173.6c180c6-0ubuntu1~)
    Conffiles:
    /etc/kernel/postinst.d/zz-update-grub 5a98abefbfe97dbed36db7899251e433
    /etc/kernel/postrm.d/zz-update-grub 5a98abefbfe97dbed36db7899251e433 Description: GRand Unified Bootloader (common files for version 2)
    This package contains common files shared by the distinct flavours of GRUB.
    The files in this package are specific to GRUB 2, and would break GRUB
    Legacy if installed on the same system.
    Homepage: https://www.gnu.org/software/grub/
    --8<---------------cut here---------------end--------------->8---

    - ls -alR /etc

    Hmm, that feels like something of a privacy breach.
    Could you narrow it down?

    - grep -r /etc/kernel /var/lib/dpkg/info

    --8<---------------cut here---------------start------------->8--- /var/lib/dpkg/info/initramfs-tools.conffiles:/etc/kernel/postinst.d/initramfs-tools
    /var/lib/dpkg/info/initramfs-tools.conffiles:/etc/kernel/postrm.d/initramfs-tools
    /var/lib/dpkg/info/unattended-upgrades.conffiles:/etc/kernel/postinst.d/unattended-upgrades
    /var/lib/dpkg/info/initramfs-tools.list:/etc/kernel /var/lib/dpkg/info/initramfs-tools.list:/etc/kernel/postinst.d /var/lib/dpkg/info/initramfs-tools.list:/etc/kernel/postinst.d/initramfs-tools /var/lib/dpkg/info/initramfs-tools.list:/etc/kernel/postrm.d /var/lib/dpkg/info/initramfs-tools.list:/etc/kernel/postrm.d/initramfs-tools /var/lib/dpkg/info/linux-image-6.12.31-amd64.postrm:if [ -d /etc/kernel/postrm.d ]; then
    /var/lib/dpkg/info/linux-image-6.12.31-amd64.postrm: --arg=$image_path /etc/kernel/postrm.d
    /var/lib/dpkg/info/apt.list:/etc/kernel /var/lib/dpkg/info/apt.list:/etc/kernel/postinst.d /var/lib/dpkg/info/grub2-common.conffiles:/etc/kernel/postinst.d/zz-update-grub /var/lib/dpkg/info/grub2-common.conffiles:/etc/kernel/postrm.d/zz-update-grub /var/lib/dpkg/info/grub-efi-amd64.postinst: if egrep -q '^[[:space:]]*post(inst|rm)_hook[[:space:]]*=[[:space:]]*(/sbin/|/usr/sbin/)?update-grub' /etc/kernel-img.conf 2>/dev/null; then
    /var/lib/dpkg/info/grub-efi-amd64.postinst: echo 'Removing update-grub hooks from /etc/kernel-img.conf in favour of' >&2
    /var/lib/dpkg/info/grub-efi-amd64.postinst: echo '/etc/kernel/ hooks.' >&2 /var/lib/dpkg/info/grub-efi-amd64.postinst: sed -ri /etc/kernel-img.conf -e '\%^[[:space:]]*post(inst|rm)_hook[[:space:]]*=[[:space:]]*(/sbin/|/usr/sbin/)?update-grub%d'
    /var/lib/dpkg/info/grub-efi-amd64.preinst: test -h /etc/kernel/postrm.d/zz-update-grub; then
    /var/lib/dpkg/info/grub-efi-amd64.preinst: rm -f /etc/kernel/postrm.d/zz-update-grub
    /var/lib/dpkg/info/grub2-common.list:/etc/kernel /var/lib/dpkg/info/grub2-common.list:/etc/kernel/postinst.d /var/lib/dpkg/info/grub2-common.list:/etc/kernel/postinst.d/zz-update-grub /var/lib/dpkg/info/grub2-common.list:/etc/kernel/postrm.d /var/lib/dpkg/info/grub2-common.list:/etc/kernel/postrm.d/zz-update-grub /var/lib/dpkg/info/systemd.list:/etc/kernel /var/lib/dpkg/info/systemd.list:/etc/kernel/install.d /var/lib/dpkg/info/intel-microcode.list:/etc/kernel

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Bastian Blank@1:229/2 to Sean Whitton on Tue Jun 24 23:40:01 2025
    XPost: linux.debian.bugs.dist
    From: waldi@debian.org

    On Sun, Jun 22, 2025 at 05:25:07PM +0100, Sean Whitton wrote:
    - dpkg -s grub2-common
    /etc/kernel/postinst.d/zz-update-grub 5a98abefbfe97dbed36db7899251e433
    /etc/kernel/postrm.d/zz-update-grub 5a98abefbfe97dbed36db7899251e433

    So at least you now have the correct files.

    - ls -alR /etc
    Hmm, that feels like something of a privacy breach.
    Could you narrow it down?

    This was more fishing for possibly other lost conffiles, aka
    "*.dpkg-dist", or other weird stuff.

    - grep -r /etc/kernel /var/lib/dpkg/info

    So there seems to be nothing else installed that could remove those
    files as part of maintainer scripts at least.

    - zgrep /etc/kernel /var/log/apt/*
    This did not produce any useful output:

    But this shows that those two scripts where missing for a long time, as
    they don't show up in the run-parts output. With the default logrotate
    config for term.log (rotate monthly and keep 12) this means it is broken
    since a year.

    So all the calls of "update-grub" from the linux maintainer scripts have
    been missing. But something still created new grub configs or you
    would've never booted 6.12.31. So either there is something else on
    this system that creates grub configs or someone did it by hand.

    You could try and see if logs contain traces of "update-grub":

    - grep "Found linux image" -B 10 /var/log/ -r
    - journalctl --since=2025-04-01 -g 'Found linux image'

    Bastian

    --
    You're dead, Jim.
    -- McCoy, "The Tholian Web", stardate unknown

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Sean Whitton@1:229/2 to Bastian Blank on Wed Jun 25 12:00:01 2025
    XPost: linux.debian.bugs.dist
    From: spwhitton@spwhitton.name

    Hello,

    On Tue 24 Jun 2025 at 11:31pm +02, Bastian Blank wrote:

    On Sun, Jun 22, 2025 at 05:25:07PM +0100, Sean Whitton wrote:
    - dpkg -s grub2-common
    /etc/kernel/postinst.d/zz-update-grub 5a98abefbfe97dbed36db7899251e433
    /etc/kernel/postrm.d/zz-update-grub 5a98abefbfe97dbed36db7899251e433

    So at least you now have the correct files.

    Well, they're not installed at those paths, only the *.dpkg-dist still.

    - ls -alR /etc
    Hmm, that feels like something of a privacy breach.
    Could you narrow it down?

    This was more fishing for possibly other lost conffiles, aka
    "*.dpkg-dist", or other weird stuff.

    Okay. There is also /etc/cryptsetup-initramfs/conf-hook.dpkg-dist.

    - zgrep /etc/kernel /var/log/apt/*
    This did not produce any useful output:

    But this shows that those two scripts where missing for a long time, as
    they don't show up in the run-parts output. With the default logrotate config for term.log (rotate monthly and keep 12) this means it is broken since a year.

    So all the calls of "update-grub" from the linux maintainer scripts have
    been missing. But something still created new grub configs or you
    would've never booted 6.12.31. So either there is something else on
    this system that creates grub configs or someone did it by hand.

    (This might be a red herring because this machine has barely been used
    over the past year.)

    You could try and see if logs contain traces of "update-grub":

    - grep "Found linux image" -B 10 /var/log/ -r
    - journalctl --since=2025-04-01 -g 'Found linux image'

    There is exactly one trace: when apt upgraded to grub-efi-amd64 2.12-8:

    --8<---------------cut here---------------start------------->8---
    Setting up grub-efi-amd64 (2.12-8) ...
    [...]
    Found linux image: /boot/vmlinuz-6.12.31-amd64
    Found initrd image: /boot/initrd.img-6.12.31-amd64
    Found linux image: /boot/vmlinuz-6.12.27-amd64
    Found initrd image: /boot/initrd.img-6.12.27-amd64
    --8<---------------cut here---------------end--------------->8---

    In the [...] I got prompted about the new /etc/default/grub.

    So it seems like the conffile handling that went on during that /etc/default/grub change might have gone wrong?

    --
    Sean Whitton

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmhbx7oZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQKv4EACyHRwOf+Cd/QUWh5ScPs0z oHdpv7wl9ptusr97IVJxEKxGKEn3Go1HQ+AEqafbPx2Y4KoG3Tt4FncsYExNwZ9n y262vWDVoOUdAxbiWh1E8vclvD27s30HrUKpKDZdAhSL5FbT4RBtZFJ6DrzgnzhY VFS3vPHYtrsEJCmZvM1AoZrNw7NivrMjsu5AlY/EnyxADpeKzj7MPBaUhhsJokUV zviA1nOAGCgWJnzg7PWRwfdBfACiYnHgxyZXiTSDo09PsWvwIv8ThlxQg/82A4pO ESzwbVmhCdkTcS4RLyxkBZKPE/2xTqyXxj3a58558acH0XHnqITEb9hBgaRobQ23 d3lLqdeR2SA0zuqMBxigauTaV7opwvJ4Wib9ihDh5Jj6z2sVGNJQ4ud4bhIvx7P8 Dxi36dyemq/qBVYuuowS0zQ6Fiq86LpWRYmFmSTnFha4TqDMwn8WZg/jOxRoKiF9 eHTVSRQLidORDCmcfqtoEKgrdXSL3XhqHQBdxEARvMAX8sRDL95oqBW/BxkOA1pz JKON2E0x8+2W62pxilA0hYvGwK51f5v6ogqHPRMO8DgB99WnRSJWRFrC8MjIZLdN lRN9isf8goXuKxGDHYY04oalZQgFzkpl9emdnjO/mSxBLTfufSiQp8/OlJF3mfyh rePrQu8IUINShxZfsXNV1A==h8yd
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you canno