KRNL-5840: add detection for proxmox and raspi kernel

This commit is contained in:
Kristian Schuster 2019-10-20 19:55:34 +02:00
parent c16133b255
commit ace2e27237
No known key found for this signature in database
GPG Key ID: 41D9CF63A7E6A4EB
1 changed files with 2 additions and 1 deletions

View File

@ -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"