Linux command
bootctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
bootctl
Example
bootctl list
Example
sudo bootctl reboot-to-firmware true
Example
bootctl --esp-path /boot/efi/
Install
sudo bootctl install
Update
sudo bootctl update
Remove
sudo bootctl remove
Example
sudo bootctl set-default entry_id
说明
bootctl controls EFI firmware boot settings and manages the systemd-boot boot loader. It can install, update, and remove systemd-boot, and control boot entries and firmware settings.
参数
- --esp-path PATH
- Path to EFI system partition
- --boot-path PATH
- Path to $BOOT partition
- -p, --print-esp-path
- Print ESP path and exit
- -x, --print-boot-path
- Print boot partition path and exit
- --no-variables
- Do not touch EFI variables
- --graceful
- Ignore errors for operations
- --make-entry-directory
- Create entry directory during install
FAQ
What is the bootctl command used for?
bootctl controls EFI firmware boot settings and manages the systemd-boot boot loader. It can install, update, and remove systemd-boot, and control boot entries and firmware settings.
How do I run a basic bootctl example?
Run `bootctl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --esp-path PATH do in bootctl?
Path to EFI system partition