mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02: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
@ -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…
x
Reference in New Issue
Block a user