update
All checks were successful
部署文档 / build (push) Successful in 1m8s

- deps
- faster js cdn
- Diary: recents 2025
- Notes:
ArchInstall (archCN mirror, niri refs)
ArchUEFI (make `bootxxx.efi` questions more neutral)
SelfHosted (wont extend notes anymore)

Signed-off-by: SilverAg.L <caclx@outlook.com>
This commit is contained in:
2025-12-26 00:40:16 +08:00
parent 8eed3560c1
commit 3604b6e4c0
7 changed files with 1087 additions and 1079 deletions

View File

@@ -67,9 +67,9 @@ UEFI 固件首先会**遍历各硬盘的 ESP 分区**,并在其中查找`\EFI\
::: info
实际上`bcdboot`工具会在 ESP 分区里同时写入`bootx64.efi``bootmgfw.efi`。前者即回退路径启动项。
有关`bootx64.efi``bootmgr(.efi)``bootmgfw.efi`的关系可能有些复杂,[微软文档](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcd-system-store-settings-for-uefi?view=windows-11)也只隐晦地给出了一部分,谷歌了一圈各种观点都有。本着实事求是的原则,我不会糅合这些观点提出假设,只附上几个问题:
- Windows 的`bootx64.efi`分别在本机 Windows、WinToGo 和 WinPE 中起到什么作用?它是否真的等同于(或者等价于)`bootmgfw.efi`(或是`bootmgr`
- 到底是 fwbootmgr`bootmgfw.efi`调用 bootmgr还是反过来呢?二者是谁“悄悄地”为 UEFI NVRAM 添加原生启动项?
有关`bootx64.efi``bootmgr(.efi)``bootmgfw.efi`的关系可能有些复杂,谷歌了一圈各种观点都有。本着实事求是的原则,我不会糅合这些观点提出假设,只附上几个问题:
- `bootx64.efi``bootmgfw.efi`(或`bootmgr`分别在本机 Windows、WinToGo 和 WinPE 中起到什么作用?三者之间是否存在等价(即功能上可以替代,乃至文件哈希相同
- fwbootmgr`bootmgfw.efi` bootmgr是谁“悄悄地”为 UEFI NVRAM 添加原生启动项?
:::
## 启动加载器(以 Grub 为主)
@@ -193,7 +193,7 @@ echo 'root=UUID=... resume=UUID=... rw loglevel=3 quiet' > /etc/kernel/cmdline
::: info [GPT 分区自动挂载](https://wiki.archlinuxcn.org/wiki/Systemd#GPT%E5%88%86%E5%8C%BA%E8%87%AA%E5%8A%A8%E6%8C%82%E8%BD%BD)
跟 [@Vescrity](https://github.com/Vescrity)讨论的时候我俩都觉得分区 UUID 太长了,于是他尝试省略掉`root=`参数。
就结果来看还真可行,顺带附上他的折腾记录:[Yukitoha Blogs从统一内核镜像启动](https://vescrity.github.io/post/UKI/)。
就结果来看还真可行,顺带附上他的折腾记录:[从统一内核镜像启动](https://vescrity.github.io/post/UKI/)。
:::
### ii. 预设文件