Having trouble adding modules using dracut

So, I’m not really that new to using EndeavourOS, I just don’t know which topic to add this post under.

The context is that I just reinstalled EndeavourOS with GNOME after having used a different distro for a while, and was trying to force GNOME to use Wayland when no such option is given (I’m using an Nvidia card with proprietary drivers, so it doesn’t give this option by default).

The actual problem: I’ve been trying to add modules to my initrd using dracut, because I was following the tutorial linked by this comment (Wayland is missing - #17 by avgdd)

  • Enable modesetting for nvdia drivers. Follow the instructions in the Arch wiki :
  • Add the modules nvidia , nvidia_modeset , nvidia_uvm and nvidia_drm to /etc/mkinitcpio.conf and run the command sudo mkinitcpio -P
  • Add the kernel parameter nvidia-drm.modeset=1 to /etc/default/grub and run the command sudo update-grub

Since I’m using dracut, I instead tried to use the flag --add, specifically sudo dracut --hostonly --no-hostonly-cmdline -f --add "nvidia nvidia_modeset nvidia_uvm nvidia_drm". That only netted the following:

dracut: dracut module 'dash' will not be installed, because command 'dash' could not be found!
dracut: dracut module 'mksh' will not be installed, because command 'mksh' could not be found!
dracut: dracut module 'busybox' will not be installed, because command 'busybox' could not be found!
dracut: dracut module 'dbus-broker' will not be installed, because command 'dbus-broker' could not be found!
dracut: dracut module 'rngd' will not be installed, because command 'rngd' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmanctl' could not be found!
dracut: dracut module 'connman' will not be installed, because command 'connmand-wait-online' could not be found!
dracut: dracut module 'network-wicked' will not be installed, because command 'wicked' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'kpartx' could not be found!
dracut: dracut module 'tpm2-tss' will not be installed, because command 'tpm2' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsiadm' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsid' could not be found!
dracut: dracut module 'nvmf' will not be installed, because command 'nvme' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut module 'memstrack' will not be installed, because command 'memstrack' could not be found!
dracut: memstrack is not available
dracut: If you need to use rd.memdebug>=4, please install memstrack and procps-ng
dracut: dracut module 'squash' will not be installed, because command 'mksquashfs' could not be found!
dracut: dracut module 'squash' will not be installed, because command 'unsquashfs' could not be found!
dracut: dracut module 'nvidia' cannot be found or installed.

I tried adding the modules using a config file in /etc/dracut.conf.d/, but the same result occurred.

It seems like there are a bunch of default modules that I don’t have installed, so it won’t make a new initrd. How can I resolve this so I can make a new initrd successfully?

There are instructions for adding nvidia drivers to dracut in the EOS wiki:
https://discovery.endeavouros.com/installation/dracut/2022/12/

Basically, create a file called /etc/dracut.conf.d/nvidia.conf with the following:

force_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "

Then run sudo dracut-rebuild

All those messages except the last one are normal. It is just letting you know that it isn’t including things you don’t have.

The failure is called because you are trying to install a module named nvidia but there is no such module so it fails. In dracut, that is considered a driver, not a module.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.