2025-03-14 21:59:59 -06:00
|
|
|
# bootctl
|
|
|
|
|
|
|
|
|
|
> Control EFI firmware boot settings and manage boot loader.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/bootctl.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Show information about the system firmware and the bootloaders:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`bootctl`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`):
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`bootctl --esp-path /{{path/to/efi_system_partition}}/`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|