I installed Kubuntu a few days ago, and I have in a partition alongside windows (all UEFI).
Right now if I boot the computer the windows boot loader starts and Windows starts, so to start ubuntu I have to press Esc, then it lets me boot different things found in the hardrive, I have to select "ubuntu", then grub loads and let's me select again either ubuntu or windows. This is really anoying.
The output of efibootmgr in linux is this:
BootCurrent: 0004
Timeout: 5 seconds
BootOrder: 0002,3002,0004,2001,2002,2003
Boot0000* Disco duro del portátil
Boot0002* Windows Boot Manager
Boot0004* ubuntu
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3001* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
As expected. If I do a sudo efibootmgr -o ...
then I can change the boot order to put 0004 in front. If I do so and run efibootmgr again then the order appears correctly changed. If I reboot the computer, however, the order is not respected, it just boots window again, and if I go back to linux and run efiboomgr, then the order changed back to the one shown above.
Why could this happen and how do I make the change persistent?