Skip to content

Image Customizer: Multiple kernels problems #460

@Britel

Description

@Britel

In the Azure Linux tdnf config, there is the following:

[main]
...
installonly_limit=3
installonlypkgs=kernel kernel-mshv kernel-uvm kernel-uki kernel-64k
...

The allows for there to be multiple kernel package versions installed at the same time.

Having backup kernels is useful for systems that do package updates since a new kernel version might be faulty/problematic. But for building images, most people don't want multiple kernels installed.

This typically shows up when a user installs a package that depends on a specific version of the kernel package. For example, kernel-drivers-gpu or kernel-tools. When such a package is installed and a newer version of the kernel is available, this triggers the installation of a second kernel in the image.

The current recommendation for users is to do the following in their config:

os:
  packages:
    remove:
    - kernel

    install:
    - kernel
    - kernel-tools

Since, 'remove' happens before 'install' and 'remove' will remove all versions of a package, this results in only a single kernel being installed in the image.

However, we should investigate ways to improve the user experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions