[Software][Solved] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

[Software][Solved] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#1 Post 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 ?
Last edited by jebez on 2025-01-14 17:20, edited 1 time in total.
Retired of Debian, I'm on Arch Linux btw

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1315
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 134 times
Been thanked: 235 times

Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#2 Post by wizard10000 »

Moved to Testing and Unstable.
we see things not as they are, but as we are.
-- anais nin

jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#3 Post by jebez »

Why moved? It's a general question, systemd-ukify is unavailable in stable but it's just why I ask this question...
Retired of Debian, I'm on Arch Linux btw

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1315
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 134 times
Been thanked: 235 times

Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#4 Post by wizard10000 »

Because that 6.12.9 kernel isn't available in Stable (or Testing).
we see things not as they are, but as we are.
-- anais nin

jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#5 Post by jebez »

Again the title question applies also in stable, I can be in stable & e.g. /etc/initramfs/post-update.d/zz-hello :

Code: Select all

echo hello world
well as you want...
Retired of Debian, I'm on Arch Linux btw

reinob
Section Moderator
Section Moderator
Posts: 1265
Joined: 2014-06-30 11:42
Has thanked: 131 times
Been thanked: 62 times

Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#6 Post 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?

jebez
Posts: 127
Joined: 2024-07-01 15:21
Been thanked: 2 times

Re: [Software] Can /boot/vmlinuz-*-amd64 be updated alone, without /boot/initrd.img-*-amd64 being updated as well?

#7 Post 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.
Retired of Debian, I'm on Arch Linux btw

Post Reply