BOOTCTL(1) | bootctl | BOOTCTL(1) |
NAME¶
bootctl - 控制 systemd-boot 引導管理器SYNOPSIS¶
bootctl [OPTIONS...] status
bootctl [OPTIONS...] update
bootctl [OPTIONS...] install
bootctl [OPTIONS...] remove
描述¶
bootctl 用於檢查、更新、安裝、刪除 systemd-boot[1](一個功能比GRUB少且僅適用於UEFI平臺的引導管理器)。bootctl status 顯示 當前已安裝的 systemd-boot 版本 以及當前的EFI啓動項。
bootctl update 更新所有已安裝的 systemd-boot 引導管理器(僅在當前系統的 systemd-boot 版本比已安裝在ESP分區的版本更新的情況下)。 注意,這也會更新默認的EFI啓動項(/EFI/BOOT/BOOT*.EFI)。 如果當前的EFI啓動項列表中不包含 systemd-boot 項, 那麼將會爲其創建一個EFI啓動項, 並將其添加到EFI啓動順序列表的尾部。
bootctl install 將 systemd-boot 安裝到 ESP(EFI system partition)分區。 也就是將 systemd-boot 安裝爲 默認啓動項(/EFI/BOOT/BOOT*.EFI), 並將其添加到EFI啓動順序列表的頭部。
bootctl remove 從ESP(EFI system partition)分區 刪除所有已安裝的 systemd-boot 以及對應的 EFI啓動項。
如果沒有給出任何命令,那麼視爲使用了 status 命令。
選項¶
能夠識別的命令行選項如下:-h, --help
--version
--path
--no-variables
退出狀態¶
返回值爲 0 表示成功, 非零返回值表示失敗代碼。參見¶
Boot loader specification[2] Systemd boot loader interface[3]NOTES¶
- 1.
- Boot loader specification
- 2.
- Systemd boot loader interface
跋¶
本頁面中文版由中文 man 手冊頁計劃提供。翻譯人員:金步國
金步國作品集:https://www.jinbuguo.com
中文 man
手冊頁計劃:../../man-pages-zh/manpages-zh
systemd 231 |