Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UpgradeInitramfsGenerator: drop distutils dependency
Originally the actor used distutils.version.LooseVersion to detect newest version of installed kernel package inside target userspace container. But the distutils python module has become deprecated and we should not use it anymore in Python 3.12+. However, we do not expect to see multiple versions of kernel present inside the target userspace container as the container is created during the IPU process from scratch (always). Considering the presence of multiple kernels to be sign of error, which could negatively affect also additional actions later. Updated the solution, raising an error if multiple kernels are detected inside the container. As we expect one kernel only, no need to compare versions of particular possible kernel packages. Note there are now just these cases when this could happen: * a third party package is required to be installed inside the container * an explicit requirement to install particular version of container is made by a custom actor
- Loading branch information