Open garberw opened 3 months ago
root@electron# FOUND_VMLINUZ=$(ls -v /boot/vm[l0-9]* 2> /dev/null | grep -v '\-rescue-' | tail -1)
root@electron# echo $FOUND_VMLINUZ
/boot/vmlinuz-6.9.11-200.fc40.x86_64
the solution is that you need grep -v '\-rescue-'
and not grep -v '\-rescue\-'
the second one has a backslash on the second '-' which is wrong.
Describe the bug /usr/share/lynis/include/tests_kernel line 695 is generating the error
for the same reason
Version
Expected behavior it works but perhaps something is wrong with this command