Open digitalcheetah opened 1 year ago
Facing this issue as well on Arch Linux
2023-09-14 10:17:09 Performing test ID KRNL-5830 (Checking if system is running on the latest installed kernel)
2023-09-14 10:17:09 Test: Checking presence /var/run/reboot-required.pkgs 2023-09-14 10:17:09 Result: file /var/run/reboot-required.pkgs not found 2023-09-14 10:17:09 Test: Checking presence /var/run/needs_restarting
2023-09-14 10:17:09 Result: file /var/run/needs_restarting not found
2023-09-14 10:17:09 Result: /boot exists, performing more tests from here
2023-09-14 10:17:09 Result: found /boot/vmlinuz-linux
2023-09-14 10:17:09 Result: version derived from file name is ''
2023-09-14 10:17:09 Test: checking kernel version on disk
2023-09-14 10:17:09 Result: found version 6.5.3-arch1-1 2023-09-14 10:17:09 Result: active kernel version 6.5.3-zen1-1-zen
2023-09-14 10:17:09 Result: reboot needed, as there is a difference between active kernel and the one on disk
Thanks for reporting. To resolve this, your help is welcome, as things need to continue to work on all Linux distributions.
Is there a way to easily get the version from the vmlinuz-linux file that matches the same naming convention?
And maybe a silly question: why install different types of kernels? Do you switch between them? Is it for testing purposes?
Describe the bug When multiple kernels are installed on a system, KRNL-5830 seems to fail with a restart needed message, even if the kernel that is loaded is the same as on the disk. Naturally, if one kernel is installed, it's not really an issue.
Version
Expected behavior Ideally, Lynis should detect the kernels installed, detect the currently running kernel, and use that as the basis for comparison.
Output
Additional context It is worth noting that Artix (and probably Arch) do not place versions in their filenames. I don't know if or how that's going to affect things. I am open to ideas, though.