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

:eye: https://wiki.archlinux.org/title/Grub#Generate_the_main_configuration_file

This creates an initial ram disk for the linux kernel.

:eye: https://wiki.archlinux.org/title/Mkinitcpio

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.

:eye: https://wiki.archlinux.org/title/Modprobe.d#Using_files_in_/etc/modprobe.d/_2

No.

:eyeglasses:
https://wiki.archlinux.org/

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?)?

Yes.

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.