Skip to content

Add RHEL10 support #372

@dabelenda

Description

@dabelenda

Use Case

Trying to manage RHEL10 machines I find that there are a lot of issues.

Since RHEL10 is using partition UUID for everything (including a kernel cmdline setting for hibernate) the module does not work as expected. After resizing the swap I get:

UUID=40a82883-0ad6-45de-856a-27f845f144ea       none    swap    defaults        0       0
/dev/vg0/swap   swap_/dev/vg0/swap      swap    defaults        0       0

(and I need to edit the kernel cmdline to change/remove resume=UUID=XXXX as documented in a Red Hat KB, I personnally removed the line in a kickstart postinstall script to avoid this issue forever).

Describe the Solution You Would Like

The module should manage RHEL10 correctly, and remove edit the existing swap entry instead of adding a new one.

Describe Alternatives You've Considered

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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