deHakkelaar

Authored Comments

"The next step is to run the command 'grub2-mkconfig > /boot/grub2/grub.cfg', but as far as I know, you can't do this with sudo, so you need to be root."

grub2-mkconfig | sudo tee /boot/grub2/grub.cfg

Or if grub2-mkconfig also needs root privies:

sudo grub2-mkconfig | sudo tee /boot/grub2/grub.cfg

Try:
sudo -u postgres COMMAND