Skip to content

5e38eec86 breaks multiple kernels #3949

@ppira

Description

@ppira

mkosi commit the issue has been seen with

main

Used host distribution

ArchLinux

Used target distribution

ArchLinux

Linux kernel version used

6.16.3-arch1-1

CPU architectures issue was seen on

x86_64

Unexpected behaviour you saw

I have a use-case where I install multiple (same version, different config) kernels into an image and generate different UKI:s for each one of them. This broke with commit 5e38eec which does not allow more than one directory in /lib/modules/.

Used mkosi config

mkosi output

5e38eec86 mkosi/__init__.py (Clayton Craft  2025-06-04 15:44:50 -0700 1303)  "Multiple kernel module directories found in /usr/lib/modules, unable to determine correct version to use"  # noqa: E501

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions