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:
authormboelen <michael@cisofy.com>2014-09-25 19:57:59 +0400
committermboelen <michael@cisofy.com>2014-09-25 19:57:59 +0400
commit348d024dd44a901624cca8dcfdc0a439e1107449 (patch)
treeed23be7cd625b7524dbe56d2744ff102e813264f /include/tests_boot_services
parent9067551508bb3056928f7592844fcc2ad335d561 (diff)
Set found status when a possible match for boot loader has been found
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r--include/tests_boot_services3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index cf7ea655..a86d7a32 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -56,8 +56,11 @@
# YYY password check, when documentation of GRUB2 project is improved
# YYY Add check permission check (600)
fi
+
+ # Some OSes like Gentoo do not have /boot mounted by default
if [ -d /boot ]; then
if [ "`ls /boot/* 2> /dev/null`" = "" -a ! "${GRUB2INSTALLBINARY}" = "" ]; then
+ BOOT_LOADER_FOUND=1
logtext "Result: found empty /boot, however with GRUB2 binary installed. Best guess is that GRUB2 is actually installed, but /boot not mounted"
Display --indent 4 --text "- Checking presence GRUB2" --result "POSSIBLE MATCH" --color YELLOW
ReportManual "${TEST_NO}:01"