mirror of https://github.com/CISOfy/lynis.git
check /boot/vmlinuz as a symlink in the reboot test
This commit is contained in:
parent
ad5dc53a5f
commit
521487310f
|
@ -663,7 +663,10 @@
|
|||
ReportException "${TEST_NO}:1" "Can't determine kernel version on disk, need debug data"
|
||||
fi
|
||||
elif [ -f ${ROOTDIR}boot/vmlinuz-linux ] || [ -f ${ROOTDIR}boot/vmlinuz-linux-lts ] || [ -f "$(${LSBINARY} -t ${ROOTDIR}boot/vm[l0-9]* 2> /dev/null | ${HEADBINARY} -1)" ]; then
|
||||
if [ -f ${ROOTDIR}boot/vmlinuz-linux ]; then
|
||||
if [ -f ${ROOTDIR}boot/vmlinuz ]; then
|
||||
LogText "Result: found ${ROOTDIR}boot/vmlinuz"
|
||||
FOUND_VMLINUZ=${ROOTDIR}boot/vmlinuz
|
||||
elif [ -f ${ROOTDIR}boot/vmlinuz-linux ]; then
|
||||
LogText "Result: found ${ROOTDIR}boot/vmlinuz-linux"
|
||||
FOUND_VMLINUZ=${ROOTDIR}boot/vmlinuz-linux
|
||||
elif [ -f ${ROOTDIR}boot/vmlinuz-linux-lts ]; then
|
||||
|
|
Loading…
Reference in New Issue