Kernel/GRUB2 Boot Parameters

On debian if I wanted to add kernel parameters I would edit GRUB2 and then run update-grub. But that option is not available to me in Qubes (right?)

What is the recommended way of adding kernel parameters please?

after editing /etc/default/grub
do
grub2-mkconfig -o /boot/grub2/grub.cfg for legacy bios.
grub2-mkconfig -o /boot/efi/EFI/qubes/grubx64.cfg for uefi.

2 Likes

I have inserted an additional parameter in /etc/default/grub. It`s needed to fix random crashes with my nvidia card (nouveau.noaccel=1) as of using Qubes 4.1. I understand that I need to activate that parameter with one of the two commands from above.

Now my question:

How do I know which one to use? None of the two files are existing on my running system. Neither /boot/grub2/grub.cfg nor /boot/efi/EFI/qubes/grubx64.cfg.

As I don’t want to render my system dead I’m asking before what’s wrong here:-)

maybe run this first sudo find /boot -iname "*.cfg" maybe you use other name, as per default i believe in 4.1 it’s grubx64.cfg / grub.cfg.

The file that was found is /boot/efi/EFI/qubes/grub.cgf. That means use the second line and adjust the filename I guess.

However there was a kernel update in the regular update process for dom0 and now my changed configuration is in place without trying anything else:-).

i see, then update /etc/default/grub and write to that file.

1 Like