Page 1 of 1
[Software][Solved] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-13 10:55
by jebez
https://wiki.debian.org/EFIStub#Setting ... rnel_Image
My /etc/initramfs/post-update.d/zz-ukify (there isn't /etc/kernel/postinst.d/zz-ukify):
Code: Select all
#!/bin/sh
ukify build --linux=/vmlinuz --initrd=/initrd.img --cmdline='root=/dev/disk/by-id/nvme-WDS250G3X0C-00SJG0_185250422455-part1 resume=/dev/disk/by-id/nvme-WDS250G3X0C-00SJG0_185250422455-part2 rw nvidia-drm.modeset=1' -o /efi/efi/boot/bootx64.efi
It worked, for the update of Linux 6.12.9.
So the title? If yes also need /etc/kernel/postinst.d/zz-ukify ?
Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-13 14:40
by wizard10000
Moved to Testing and Unstable.
Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-13 17:39
by jebez
Why moved? It's a general question, systemd-ukify is unavailable in stable but it's just why I ask this question...
Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-13 17:50
by wizard10000
Because that 6.12.9 kernel isn't available in Stable (or Testing).
Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-13 18:04
by jebez
Again the title question applies also in stable, I can be in stable & e.g. /etc/initramfs/post-update.d/zz-hello :
well as you want...
Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-14 17:04
by reinob
I don't understand the zz-ukify stuff.
But from your subject: the standard (stable) debian install has /etc/kernel/postinst.d/initramfs-tools which updates the initramfs whenever a new kernel is installed.
(this is part of the initramfs-tools package).
The /etc/kernel/postinst.d/* are run with the <kernel package> postinst script.
So no, you cannot update the kernel (/boot/vmlinuz..) without also updating the initramfs (/boot/initrd.img..)
(of course you /can/, but you would stop having debian stable).
(note that in general the modules have to be compiled for one specific kernel, and the initrd image contains modules required for booting, so if you have a mismatch, you will (generally) not be able to boot).
Whatever your problem /actually/ may be, you seem to have a serious case of XY-problem here, so maybe explain what you need?
Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?
Posted: 2025-01-14 17:19
by jebez
https://wiki.debian.org/EFIStub#Setting ... rnel_Image suggests 2 zz-ukify : /etc/kernel/postinst.d/zz-ukify & /etc/initramfs/post-update.d/zz-ukify.
But I wondered if only /etc/initramfs/post-update.d/zz-ukify is enough (zz-ukify must be run if /boot/vmlinuz-*-amd64 &/or /boot/initrd.img-*-amd64 is/are updated) so the title question that you answered no, as example the update of Linux 6.12.9 worked with only it.
So
https://wiki.debian.org/EFIStub should be corrected.
It's for
viewtopic.php?t=159997.