Driver Toolkit: Get kernel version from bootc image #736
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Driver Toolkit: Get kernel version from bootc image
When building the
driver-toolkit
image, It is cumbersome to find kernelversion that matches the future
nvidia-bootc
andintel-bootc
images.However, the kernel version is stored as a label on the
rhel-bootc
images, which are exposed as the
FROM
variable in the Makefile.This change collects the kernel version using
skopeo inspect
andjq
.The
DRIVER_TOOLKIT_BASE_IMAGE
variable is introduced in the Makefileto dissociate it from the
FROM
variable that is used as thenvidia-bootc
and
intel-bootc
base image.The user can now specify something like:
Also, the
VERSION
variable in/etc/os-release
is the full version, sothis change modifies the command to retrieve the
OS_VERSION_MAJOR
value.
Signed-off-by: Fabien Dupont fdupont@redhat.com