gpt4 book ai didi

x86-64 - UEFI一次性加载启动选项程序实现

转载 作者:行者123 更新时间:2023-12-02 04:50:14 24 4
gpt4 key购买 nike

EasyUEFI 等实用程序如何以编程方式(需要从 BootOrderList 更改哪些 UEFI 结构/属性)实现“一次性”启动功能?我一直在浏览官方 UEFI 规范,但似乎无法从中找到答案。

其特点是(假设我通常使用Windows):

  1. 我可以选择启动一次,假设我的 U 盘包含 Linux Live 镜像。
  2. 重新启动时,我的机器会启动至 Linux USB。
  3. 当我关闭 Linux Live USB 电源并再次启动 PC 时,它会启动回 Windows。

最佳答案

一如既往,我在进一步搜索规范 5 分钟后找到了答案:

Otherwise, the boot manager is also required to initiate a boot of the boot option specified by the BootNext variable as the first boot option on the next boot, and only on the next boot. The boot manager removes the BootNext variable before transferring control to the BootNext boot option. After the BootNext boot option is tried, the normal BootOrder list is used. To prevent loops, the boot manager deletes BootNext before transferring control to the preselected boot option.

正如规范中提到的,要使用一次的选项应该放入 BootNext 列表

关于x86-64 - UEFI一次性加载启动选项程序实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53089698/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com