mirror of https://github.com/CISOfy/lynis.git
Merge pull request #797 from Schmuuu/KRNL-5840/find-more-kernels
KRNL-5840: add detection for proxmox and raspi kernel
This commit is contained in:
commit
c67696455f
|
@ -1248,7 +1248,8 @@
|
|||
LogText "Test: Checking how many kernel packages are installed"
|
||||
|
||||
if [ -n "${DPKGBINARY}" ]; then
|
||||
KERNELS=$(${DPKGBINARY} -l 2> /dev/null | ${GREPBINARY} "linux-image-[0-9]" | ${WCBINARY} -l)
|
||||
KERNEL_PKG_NAMES="linux-image-[0-9]|raspberrypi-kernel|pve-kernel-[0-9]"
|
||||
KERNELS=$(${DPKGBINARY} -l 2> /dev/null | ${EGREPBINARY} "${KERNEL_PKG_NAMES}" | ${WCBINARY} -l)
|
||||
if [ ${KERNELS} -eq 0 ]; then
|
||||
LogText "Result: found no kernels from dpkg -l output, which is unexpected"
|
||||
ReportException "KRNL-5840:2" "Could not find any kernel packages from DPKG output"
|
||||
|
|
Loading…
Reference in New Issue