Change boot order

Last change on 2024-09-04 • Created on 2024-09-04 • ID: RO-D2147

Issue

After you install a Redhat based distribution for v9x, it is no longer possible to boot from the network. Shim is a simple software package, which is used as a first stage bootloader on UEFI systems. During the installation of a RHEL 9 distribution, it is also installed. And it places the distribution in the NVRAM in the first boot entry. This also means, that you will only be able to start the Rescue System manually.

Solution

  1. Display the boot order using efibootmgr

[root@Alma-92-amd64-base ~]# efibootmgr BootCurrent: 0002 Timeout: 1 seconds BootOrder: 0000,0001,0002,0003 Boot0000* AlmaLinux Boot0001* UEFI: PXE IPv4 Realtek PCIe 2.5GBE Family Controller Boot0002* UEFI OS Boot0003* UEFI OS

  1. Find the right boot entries

Check which boot entry is for the PXE (in the example, Boot0001). Then also make sure to check which boot entry is for the installed system (Boot0000).

  1. Set the new boot order

Ideal boot order:

  • First boot entry in the PXE.
  • Second boot entry in the installed system.
  • You can choose the order of the rest yourself.

Command to run:

efibootmgr -o 1,0,2,3

Table of Contents