更新開機載入程式
bootupd
目前開機載入程式更新預設會自動執行。Fedora CoreOS 內含 bootupd 專案,支援手動與自動更新。
這通常只與裸機情境,或支援 Secure Boot 的虛擬化 Hypervisor 有關。例如,https://eclypsium.com/2020/07/29/theres-a-hole-in-the-boot/[BootHole 漏洞]就是需要更新開機載入程式的原因之一。
bootupd 可以更新 EFI 系統分割區與 BIOS MBR。bootloader-update.service 會自動執行開機載入程式更新。可使用 journalctl -u bootloader-update 檢查其記錄。
檢查系統狀態:
# bootupctl status
Component EFI
Installed: grub2-efi-x64-1:2.04-31.fc33.x86_64,shim-x64-15-8.x86_64
Update: At latest version
如果有可用更新,可使用 bootupctl update 手動套用;變更會在下次重新開機時生效。
# bootupctl update
...
Updated: grub2-efi-x64-1:2.04-31.fc33.x86_64,shim-x64-15-8.x86_64
Want to help? Learn how to contribute to Fedora Docs ›