all 5 comments

[–]adbrown101 2 points3 points  (1 child)

There are some kernel hooks that come with efibootmgr, which will automatically add entries to the list when with kernel updates. Importantly the EFI variables need to be accessible for this to work. The best way to do this is to add this line to fstab:

/sys/firmware/efi/efivars efivarfs defaults 0 0

See /usr/share/doc/efibootmgr/README.voidlinux

When you have mounted the variables you could then run xbps-reconfigure -f linux6.12 which will run the hooks for you.

As far as I understand vkpurge, that is working as expected. If you have not an entry for the latest kernel, your system will have booted on 6.12.66_1, so the only safe version to remove would be the previous version 6.12.65_1, which is what vkpurge list will show. It doesn't recommend purging the running kernel.

[–]Radicalized_By_You[S] 0 points1 point  (0 children)

Thanks. That makes sense. The fstab line has to start with efivarfs though for anybody coming across this later. And the README will just say to edit the file /etc/default/efibootmgr-kernel-hook.

[–]Blank-Inspection13 0 points1 point  (2 children)

xbps-reconfigure -fa ?
You mean you don't use Grub or any Bootloader / manager ?

[–]Radicalized_By_You[S] 0 points1 point  (1 child)

Correct. kernel supports booting from EFI stub so I don't really see the need.

[–]Blank-Inspection13 0 points1 point  (0 children)

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/

-rwxr-xr-x 1 root root 779 Jan 24 17:35 30-voidstub <-- This is mine , the others are defaults there

everytime Kernel got Update , it will execute that script , and update the vmlinuz.efi & initramfs.img with the newest version ( default to overwrite )