mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Merge pull request #1261 from jsegitz/reboot_test
check /boot/vmlinuz as a symlink in the reboot test
This commit is contained in:
commit
8604431e19
1 changed files with 4 additions and 1 deletions
|
|
@ -667,7 +667,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 a new issue