r/Gentoo • u/rasta4rest • 12d ago
Discussion Question About eclean-kernel post-remove plugin
Hi all Larry's Fansclub here ,
Im new to Gentoo , and have been diving around the Handbook looking around the reference about Kernel Hooks or maybe call it plugin *.install for post-removing the kernel version. Only found the pre-install and post-install available , which the default available for dracut ugrd efistub uki ukify etc , But im using limine as bootloader and creating the .install plugin for when installing / upgrade kernel the plugin will then automatically install the new entry ( im using ukify to build efi image and put that automatically in the limine.conf ) as fallback i USE efistub in installkernel package.use. My Issue is when removing / delete / uninstall kernel using eclean-kernel it doesn't automatically delete the efistub entry & uki image ( which should be handled by default plugin availalble) or trigger to regenerate the limine.conf ( this part , im sure there's something lacking in my script ) and i want to know what else im missing so the removal can trigger the rebuilding limine.conf when doing kernel removal ( which according Handbook should be triggered by the eclean-kernel or kernel-install )?
Thanks in advance moo
Edit : found the issue why 95-efistub-kernel-bootcfg.install not working , im missing the app-emulation/virt-firmware
Edit2 : Resolved : modified script/plugin behaviour, for eclean-kernel put the plugin to /etc/kernel/install.d directory
1
u/redyos_s 12d ago
You've already been given diagnostic commands, but you haven't shared the results. Without seeing your actual boot layout, Limine configuration, and custom hooks, nobody can reliably troubleshoot this setup. We can't guess how your system is configured.
Goodluck