Skip to content

dnf tries to "update" to older zfs branch to support newer kernels #18767

Description

@jkool702

System information

Type Version/Name
Distribution Name Fedora
Distribution Version 44
Kernel Version 7.0.14-201.fc44.x86_64 -> 7.1.3-200.fc44.x86_64
Architecture x86_64
OpenZFS Version 2.4.3

Describe the problem you're observing

Currently, zfs 2.4.3 does not support kernel 7.1.x and zfs 2.4.4 is not released yet. However, it appears that zfs 2.2.6 DOES support kernel 7.1.x, and there are no guards builtin to the rpm dependencies that prevent auto-downgrading from zfs 2.4.3 to 2.2.6.

As a result, running dnf update on a Fedora 44 system running kernel 7.0.x and zfs 2.4.3 will attempt to replace the zfs version with zfs 2.2.6 in order to install the new kernel. This would render the pool un-importable if it has zfs 2.3.x or 2.4.x features enabled.

Describe how to reproduce the problem

load up Fedora 44 system running kernel 7.0.x and zfs 2.4.3. run dnf update --refresh

EDIT: it appears on my system the zfs 2.2.6 rpm is coming from rpmsphere, not the official zfs f44 repo. Nevertheless - the fact that this could "silently" happen is still a major footgun that should, if possible, be addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions