uefi Boot Order

Change boot order

Run efibootmgr to get details

andy@hp2:~$ sudo efibootmgr
[sudo] password for andy:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,2001,2002,3001,2004
Boot0001* debian
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot3001* Internal Hard Disk or Solid State Disk

use -o (order) to change the boot order. Just move them around (for some reason it said 2004 doesn’t exist so I just removed it).

andy@hp2:~$ sudo efibootmgr -o 2001,0001,2002,3001
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 2001,0001,2002,3001
Boot0001* debian
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot3001* Internal Hard Disk or Solid State Disk
andy@hp2:~$