mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Set found status when a possible match for boot loader has been found
This commit is contained in:
parent
9067551508
commit
348d024dd4
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue