Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2022-01-31 18:38:38 +0300
committerGitHub <noreply@github.com>2022-01-31 18:38:38 +0300
commit8604431e19835d4b59e3ebac4e23fc6011308a82 (patch)
tree298060a4908ea775cecac1ed796a8204238054eb
parentce4a0ce6bb3e4be5ad51b2fb054c4be5352abe74 (diff)
parent521487310f569e76c1f6c0c16ea63a60a398b719 (diff)
Merge pull request #1261 from jsegitz/reboot_test
check /boot/vmlinuz as a symlink in the reboot test
-rw-r--r--include/tests_kernel5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/tests_kernel b/include/tests_kernel
index 1eed32ad..569b2b89 100644
--- a/include/tests_kernel
+++ b/include/tests_kernel
@@ -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