So this means my system will be booted with kernel 6.17.0-19.19~24.04.2 instead of 6.19.3-1-t2-noble? When this is true I am in trouble because the T2-chip in my laptop will not be bypassed and boot will halt.
The next boot after the updated kernel is installed does not necessarily have to boot the new kernel.
If you don't change the kernel to be booted, the newly installed kernel will likely be booted BUT, you can select whichever kernel you like at boot time, and if you want that current kernel (as opposed to the new one) to be booted persistently, you can configure grub to boot it.
The grub setting for booting a kernel can be configured in the file: /etc/default/grub. That setting is usually GRUB_DEFAULT=0, which means that the first kernel listed in the /boot/grub/grub.cfg file will be booted. Grub kernel numbers begin at 0 for the first, and 1 for the second and so on.
If you wish to upgrade, and thus have a new kernel which may come with that, but then still boot the current kernel, there are a number of alternatives.
One can stop the boot at the grub menu and select a kernel from the menu. That's done by hitting the shift key for BIOS or the esc key for UEFI, to bring up the grub menu. Then navigate to the kernel you wish to boot. This is a one-time approach.
Alternatively one can configure grub to boot the kernel one wishes to boot so that grub boots that kernel persistently until one alters the configuration again, or selects the grub menu.
If after the update and upgrade, a new kernel is installed, as shown to come in post #1, then after the upgrade, one can reconfigure grub as follows before rebooting to have the current kernel boot next time, and not the new kernel.
The quick approach is to assume that the new kernel will be the number 0, and current kernel will be the number 1, so one can change the setting in /etc/default/grub to: GRUB_DEFAULT=1, and update grub. The on rebooting, the current kernel should be booted again.
The longer check on this process is to inspect the /boot/grub/grub.cfg file to see the order of the kernels that grub will observe, and check that the kernel you want is indeed the second one listed, in which case it will certainly have the number 1 which can be used in the grub configuration to be applied in the /etc/default/grub file. For example, on this machine one can run, in a terminal, as root, the following to see the kernels on the system:
Code:
[root@min] # grep vmlinuz /boot/grub/grub.cfg
linux /boot/vmlinuz-6.18.15+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.18.15+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.18.15+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro single dis_ucode_ldr
linux /boot/vmlinuz-6.18.12+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.18.12+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro single dis_ucode_ldr
linux /boot/vmlinuz-6.18.9+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.18.9+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro single dis_ucode_ldr
linux /boot/vmlinuz-6.18.5+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.18.5+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro single dis_ucode_ldr
linux /boot/vmlinuz-6.17.13+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.17.13+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro single dis_ucode_ldr
linux /boot/vmlinuz-6.17.12+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro
linux /boot/vmlinuz-6.17.12+deb14-amd64 root=UUID=7bb5cb7c-e217-4ab6-b74e-31f25581b4ea ro single dis_ucode_ldr
The first kernel in the list is 6.18.15, which will be allocated the number 0, and the second kernel is 6.18.12, which will be number 1. (You can ignore the double entries for each kernel showing twice ... that's just showing the same kernel for full boot mode and corresponding recovery boot mode).
After such checking, the same configuration alteration as mentioned in the quick approach above will enable the current kernel to be used on the next boot ... make the change in /etc/default/grub and update grub.
There are other approaches, like holding the current kernel and configuring apt not to install a new kernel, but I don't recommend that. Newer kernels may eventually deal with the issues you have which could be tested for each new kernel, and if found to not yet succeed, still return to the kernel that works.
EDIT: The above approach is valid for the current situation described in post #1. However, since distros do upgrade often, the question arises as to how to maintain the same kernel when newer kernels are installed by subsequent upgrades.
When a second upgrade installs a second newer kernel, the current kernel will no longer be number 1, but rather number 2, which could be checked with an inspection of the /boot/grub/grub.cfg file as above. Then the configuration adjustments could be made.
Alternatively, grub can be configured to use the current kernel, despite newer kernels being installed by the use of the following configurations in /etc/default/grub: GRUB_DEFAULT=saved, and GRUB_SAVEDEFAULT=true. If those configs are set, and grub upgraded with the current working kernel, the machine should boot the current kernel indefinitely until changes to the configuration are made regardless of the number of kernels installed. One needs to ensure that the kernel is not deleted of course by the use of apt's cleaning commands.