Closed nukemiko closed 2 months ago
I not using Arch Linux anymore so make a PR to fix it. And also I think old images can't be clean by hook file needed to be clean manually anyway.
https://archlinux.org/packages/extra/any/kernel-modules-hook/ You may need something like this
Is your feature request related to a problem? Please describe. On Arch Linux, every kernel or module update triggers the hook
LenovoLegionLinux.hook
, thus rebuilding the kernel image via dracut. But each build results in a new kernel image and does not clean up old kernel images (at<mountpoint of EFI part>/EFI/Linux/Linux-<kernel information>-<random string>-rolling.efi
), thus exhausting the EFI partition's free space after several updates.Describe the solution you'd like I can't think of a good solution, but it seems possible to tell which kernel image files are old and need to be deleted by the file creation date.
Describe alternatives you've considered Improve
LenovoLegionLinux.hook
so that the files it produces have the constant filename, allowing the old kernel image file to be overwritten directly.Model and Debug Info
Distribution: Arch Linux Model name: 82JQ CPU model: AMD Ryzen 7 5800H GPU model: NVIDIA GeForce RTX 3060 Laptop GPU
Output of
sudo dmidecode -t system
. Please remove Serial Number and UUID for privacy:Output of
sudo dmidecode -t bios
:Output of
sudo cat /sys/kernel/debug/legion/fancurve
: