The default base image for the Driver Toolkit image is centos:stream9. The original work for Driver Toolkit is in OpenShift and the base image is ubi9/ubi. In bother cases, the images don't have the kernel package installed.
This change adds a test on the KERNEL_VERSION argument and exits if it's not provided at build time. This also ensure that only the relevant kernel is present when using centos:stream9 or ubi9/ubi as the base image. And this realigns a bit with the original Driver Toolkit.
The default base image for the Driver Toolkit image is
centos:stream9
. The original work for Driver Toolkit is in OpenShift and the base image isubi9/ubi
. In bother cases, the images don't have thekernel
package installed.This change adds a test on the
KERNEL_VERSION
argument and exits if it's not provided at build time. This also ensure that only the relevant kernel is present when usingcentos:stream9
orubi9/ubi
as the base image. And this realigns a bit with the original Driver Toolkit.