sudo update-grub updates the Grub configuration.
update-grub is basically a script to simplify longer commands such as the example you gave:
So, updating your boot loader configuration (if Grub) can be achieved with:
sudo mkinitcpio -P
sudo update-grub
usually followed by a reboot.