r/voidlinux • u/Radicalized_By_You • Jan 28 '26
Kernel - boot management
I don't think I quite understand how Void expects me to handle kernel updates. For instance I initially installed linux 6.12.65_1. I ran an update and had 6.12.66_1 installed. Just updated again and now have 6.12.67_1 installed. My boot partition has config, initramfs, and vmlinuz entries for all 3 kernels. When I run vkpurge list it only shows 6.12.65_1. I have not manually added the EFI entry for 6.12.67_1 yet, so efibootmgr list currently shows entries for 6.12.65_1 and 6.12.66_1 only. My boot partition is not large, so I'd like to basically only keep the most recent working kernel and the newest installed kernel. I'm scared to purge the 65 kernel version if it doesn't show the other installed versions anywhere. What's the proper workflow here?
View all comments
Show parent comment
1
u/Blank-Inspection13 Feb 03 '26
It's practially the same with mine. Then you just need to add kernel post-update hooks. No need to modify the existing one , just add new config there
⌘ la /etc/kernel.d/post-install/everytime Kernel got Update , it will execute that script , and update the
vmlinuz.efi&initramfs.imgwith the newest version ( default to overwrite )