PKGS-7410: don't show exception for systems running LXC

This commit is contained in:
Michael Boelen 2021-07-21 13:16:08 +02:00
parent 609cbf34f3
commit ad5909372d
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04

View File

@ -1316,11 +1316,18 @@
# Only report exception if there are kernels actually there. For example, LXC use the kernel of host system
case "${OS}" in
"Linux")
if [ -d "${ROOTDIR}boot" ]; then
if [ -z "$(${FINDBINARY} /boot -maxdepth 1 -type f -name 'vmlinuz*' -print -quit)" ]; then
ReportException "${TEST_NO}" "Could not find any kernel packages via package manager"
fi
fi
case "${CONTAINER_TYPE}" in
"LXC")
LogText "Info: LXC shares the kernel with host, so skipping further testing"
;;
*)
if [ -d "${ROOTDIR}boot" ]; then
if [ -z "$(${FINDBINARY} /boot -maxdepth 1 -type f -name 'vmlinuz*' -print -quit)" ]; then
ReportException "${TEST_NO}" "Could not find any kernel packages via package manager"
fi
fi
;;
esac
;;
*)
ReportException "${TEST_NO}" "Could not find any kernel packages via package manager"