Skip to content

"dracut -f" fails on Garuda linux #48

Description

@shayaknyc

Hi, running Arch-based Garuda linux, and it seems that when I use the GUI, when executed from terminal, I see where it fails. After I select the driver, then clicked on the "Load VFIO" button, this is what appears in the terminal:

button1, Added 8086:4680 to ./vfio.conf.
Copying configuration file...
Rebuilding system images...
dracut[I]: Executing: /usr/bin/dracut -f
dracut[F]: Can't write to /boot/efi/3c0508ce42a24bde8d676d83ab85ae0f/6.11.4-zen2-1-zen: Directory /boot/efi/3c0508ce42a24bde8d676d83ab85ae0f/6.11.4-zen2-1-zen does not exist or is not accessible.

After some sleuthing, I came across this: https://forum.garudalinux.org/t/dracut-issue/29663/3 which indicates that Garuda has some special needs, and that the Garuda-alternative command is sudo dracut-rebuild

I installed this through the AUR.

So, I did a little digging, and I found that inside /usr/share/gpu-passthrough-manager/tools/dracut-utils I can change line 8 from:

if [ "$DISTRO" = "EndeavourOS" ]; then

to

if [ "$DISTRO" = "Garuda" ]; then

It will properly execute the dracut-rebuild command, like it would on Endeavor. Possible to add this distro condition natively in the util?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions