Is sudo update-grub the same as sudo mkinitcpio -p linux?

Are are these two commands sudo update-grub the same as sudo mkinitcpio -p linux the same or are they different? The reason why I ask is I have been adding stuff to /etc/modprobe.d/amdgpu.conf and I am not too sure if sudo update-grub is supposed to work with this file or something?

Or in Arch, rather:

sudo grub-mkconfig -o /boot/grub/grub.cfg

generates the /boot/grub/grub.cfg file


This creates an initial ram disk for the linux kernel.


Files in /etc/modprobe.d/ directory can be used to pass module settings to udev, which will use modprobe to manage the loading of the modules during system boot.




1 Like

Has this now been replaced by dracut in the latest builds in endeavourOS?

All the stuff that I have added inside this file, how would I get dracut to load these files (that is if dracut is the pirmary way to deal with initial ram disk?)?


To my understanding of

the modules defined in .conf files in /etc/modeprobe.d are loaded into the kernel independent of the method used to create the initial ram disk.