Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
This repository was archived by the owner on May 3, 2026. It is now read-only.

[REQUEST] Dracut-rebuild for Arch Linux #222

@autodistries

Description

@autodistries

Is your feature request related to a problem? Please describe.
When changing modes on my Arch linux-based machine (runs Garuda linux), the envycontrol.py script always tries to run mkinitcpio -P; This fails because my machine is using dracut

Describe the solution you'd like
Check for existence of /usr/bin/dracut and select the right command appropriedly inside envycontrol.py :

    # Arch Linux
    elif os.path.exists('/etc/arch-release'):
        if os.path.exists('/usr/bin/dracut'):
            command = ['dracut-rebuild']
        else:
            command = ['mkinitcpio', '-P']

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions