Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"dracut -f" fails on Garuda linux #48

Open
shayaknyc opened this issue Oct 24, 2024 · 0 comments
Open

"dracut -f" fails on Garuda linux #48

shayaknyc opened this issue Oct 24, 2024 · 0 comments

Comments

@shayaknyc
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant