Man page - bootctl(1)

Packages contains this manual

Available languages:

en sv uk zh_TW zh_CN de

Manual

BOOTCTL

NAME
SYNOPSIS
描 述
選 項
退 出 狀 態
參 見
NOTES


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

ESP(EFI system partition)的 掛 載 目 錄 。 預 設 值 是 /boot

--no-variables

忽 略 EFI引 導 變 數 (也 就 是 啟 動 項 )

退 出 狀 態

返 回 值 為 0 表 示 成 功 , 非 零 返 回 值 表 示 失 敗 程 式 碼 。

參 見

Boot loader specification [2] Systemd boot loader interface [3]

NOTES

1.

Boot loader specification

http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec

2.

Systemd boot loader interface

http://www.freedesktop.org/wiki/Software/systemd/BootLoaderInterface

本 頁 面 中 文 版 由 中 文 man 手 冊 頁 計 劃 提 供 。

翻 譯 人 員 : 金 步 國
金 步 國 作 品 集 : http://www.jinbuguo.com
中 文 man 手 冊 頁 計 劃 : https://github.com/man-pages-zh/manpages-zh