Open tblancher opened 8 months ago
Yes, it is currently not possible to add additional paths for kernel images. There are some hard coded globs: https://github.com/liske/needrestart/blob/c62b1529c5af3a78ad209ff942b289d4b4cdb45a/perl/lib/NeedRestart/Kernel/Linux.pm#L130-L139
Should be possible to configure custom paths to be open for various EFI setups.
Here's the output of
needrestart -v |& head
on Arch Linux:I get the following message when running
sudo needrestart
:I have a Unified Kernel Image, signed by
sbctl
for Secure Boot, and the full path to the kernel is:My Perl is perennially so rusty I'm not sure where to begin to draft commits for a PR against needrestart. I think the first step is to configure needrestart to have alternate paths for the kernel, instead of only /boot. I'm willing to help test this, since this setup is very specific to my new laptop.
I believe it finds the CPU microcode image since for whatever reason Arch still deploys it to /boot/intel-ucode.img, but that's the only file in there.