Skip to content

dracut initramfs generation fails on UsrMerge distributions due to hardcoded /etc/services path #548

@james-tea-koerk

Description

@james-tea-koerk

The Problem
On UsrMerge distributions (such as openSUSE MicroOS/Aeon), the initramfs generation with dracut fails because the file /etc/services does not exist (it is located at /usr/etc/services instead).

Root Cause in the Code
In the Clevis repository, the file src/luks/module-setup.sh.in (and subsequently the installed module-setup.sh) contains the hardcoded command inst /etc/services. Since dracut cannot find the file at this specific location, the image generation process aborts.

Proposed Solution
Use the dracut command for optional or multiple paths to ensure compatibility across different filesystem hierarchies. The respective line should be changed to:
inst_multiple -o /etc/services /usr/etc/services

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