Ubuntu – How to prevent grub updates from resetting the EFI bootorder


I'm using Clover as my first and default bootloader. If Ubuntu is selected there, then Grub is activated (AFAIK there is no way to skip this step, I don't really use Grub at all, so I might as well remove it). My system uses UEFI, so I've set my preferred bootorder using

sudo efibootmgr -o XXXX,YYYY,ZZZZ

which works fine, until Grub is updated again. During the update my UEFI boot order settings are overwritten by the Grub defaults, with which Grub is always set as the first bootloader to be reached.

Is there anyway to persist the boot order that I have set up and prevent Grub from changing it back to its own defaults?

Best Answer

  • sudo dpkg-reconfigure grub-efi-amd64

    For the first couple of questions accept the existing values (just press Enter) but when it comes to this, select No:

     +----------------------| Configuring grub-efi-amd64 |-----------------------+
     |                                                                           |
     | GRUB can configure your platform's NVRAM variables so that it boots into  |
     | Debian automatically when powered on. However, you may prefer to disable  |
     | this behavior and avoid changes to your boot configuration. For example,  |
     | if your NVRAM variables have been set up such that your system contacts   |
     | a PXE server on every boot, this would preserve that behavior.            |
     |                                                                           |
     | Update NVRAM variables to automatically boot into Debian?                 |
     |                                                                           |
     |                    <Yes>                       <No>                       |
     |                                                ^^^^                       |