Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootorder not persisent, defaultbootorder overwrites bootorder #209

Open
mschnepf opened this issue May 21, 2024 · 0 comments
Open

bootorder not persisent, defaultbootorder overwrites bootorder #209

mschnepf opened this issue May 21, 2024 · 0 comments

Comments

@mschnepf
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant