rhboot / efibootmgr

efibootmgr development tree
GNU General Public License v2.0
519 stars 99 forks source link

bootorder not persisent, defaultbootorder overwrites bootorder #209

Open mschnepf opened 5 months ago

mschnepf commented 5 months ago

We have some Inspur NF5280R6 systems and are trying to change the boot order via efibootmgr from first from the network to first from disk. 

[root@c02-019-103 ~]# efivar --print --name 8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
GUID: 8be4df61-93ca-11d2-aa0d-00e098032b8c
Name: "BootOrder"
Attributes:
        Non-Volatile
        Boot Service Access
        Runtime Service Access
Value:
00000000  00 00 04 00 03 00                                 |......          |
[root@c02-019-103 ~]# efibootmgr -o 0000,0004,0003
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0004,0003
Boot0000* Red Hat Enterprise Linux
Boot0003* UEFI: PXE IPv4 Mellanox Network Adapter - E8:EB:D3:00:D0:AC NIC1
Boot0004* UEFI: PXE IPv4 Mellanox Network Adapter - E8:EB:D3:00:D0:AD NIC2
[root@c02-019-103 ~]# efivar --print --name 8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
GUID: 8be4df61-93ca-11d2-aa0d-00e098032b8c
Name: "BootOrder"
Attributes:
        Non-Volatile
        Boot Service Access
        Runtime Service Access
Value:
00000000  00 00 04 00 03 00                                 |......          |

However, the change is not persistent, and the system starts with the old config (network first), which is also stored in the DefaultBootOrder variable. 

[root@c02-019-103 ~]# efivar --print --name 45cf35f6-0d6e-4d04-856a-0370a5b16f53-DefaultBootOrder
GUID: 45cf35f6-0d6e-4d04-856a-0370a5b16f53
Name: "DefaultBootOrder"
Attributes:
        Non-Volatile
        Boot Service Access
        Runtime Service Access
Value:
00000000  03 00 04 00 00 00

The change of the next boot via efibootmgr works fine and we can also change the boot order, and the DefaultBootOrder, persistent within EFI/via BMC. Since I did not find the DefaultBootOrder in the UEFI specifications[1], I'm unsure if that is the correct approach/variable.

BIOS Information
        Vendor: American Megatrends International, LLC.
        Version: 05.01.27
        Release Date: 09/26/2023
        ROM Size: 9728 kB
        Characteristics:
                PCI is supported
                BIOS is upgradeable
                Boot from CD is supported
                Selectable boot is supported
                ACPI is supported
                UEFI is supported
        BIOS Revision: 5.15
        Firmware Revision: 2.10

[1] https://uefi.org/specs/UEFI/2.10/03_Boot_Manager.html

eoli3n commented 1 month ago

some people waits for long years here before getting any attention... I hope you have a lot of time