Files
cheatsheet-tldr/tldr/linux/bootctl
2025-12-22 00:22:43 +00:00

34 lines
891 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# bootctl
> Control EFI firmware boot settings and manage boot loader.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/bootctl.html>.
- Show information about the system firmware and the bootloaders:
`bootctl`
- Show all available bootloader entries:
`bootctl list`
- Set a flag to boot into the system firmware on the next boot (similar to `sudo systemctl reboot --firmware-setup`):
`sudo bootctl reboot-to-firmware true`
- Specify the path to the EFI system partition (defaults to `/efi/`, `/boot/`, or `/boot/efi`):
`bootctl --esp-path /{{path/to/efi_system_partition}}/`
- Install `systemd-boot` into the EFI system partition:
`sudo bootctl install`
- Remove all installed versions of `systemd-boot` from the EFI system partition:
`sudo bootctl remove`