BOOTCTL(1) bootctl BOOTCTL(1) bootctl -- EFI bootctl [...] {} bootctl EFI , , , systemd-boot(7) . EFI - EFI, . status , , , , ESP, . , . . 239. reboot-to-firmware [ ] "Reboot-Into-Firmware-Setup" EFI . , , '. , , . , systemctl reboot --firmware-setup, '. : systemctl reboot --firmware-setup . . systemctl(1). 251. , [1], systemd-boot. list , [1], , , [2]. JSON --json=. . 239. unlink , , . . , , initrd, , . 253. cleanup ESP XBOOTLDR , , . 253. , [1] [2], systemd-boot. set-default ID, set-oneshot . . set-oneshot , set-default . bootctl list . , : @default, @oneshot @current. , . EFI LoaderEntryDefault, LoaderEntryOneShot LoaderEntrySelected, . [1], . , , , , . @saved, EFI . (""), EFI . : systemctl reboot --boot-loader-entry= systemctl reboot --boot-loader-menu= . . systemctl(1), . 240. set-timeout , set-timeout-oneshot . set-timeout-oneshot . . systemd.time(7), . menu-disabled menu-hidden 0, , , menu-force . (""), . 250. SYSTEMD-BOOT EFI systemd-boot, . install systemd-boot EFI. systemd-boot EFI ESP/EFI/BOOT/BOOT*.EFI. . 239. update systemd-boot(7), , EFI. EFI ESP/EFI/BOOT/BOOT*.EFI. , . 239. remove systemd-boot EFI . 239. is-installed , systemd-boot ESP. , ESP ; , , systemd-boot ( ) , -- , , EFI. 243. random-seed (') EFI (ESP) systemd-boot. ESP , . , << >> EFI, . ESP EFI, , ESP, . , , . . . systemd-boot-random-seed.service(8). . [3], . 243. kernel-identify . , . : <>, <> <>. 253. kernel-inspect . . 253. : --esp-path= EFI (ESP). , /efi/, /boot/ /boot/efi/. , , ESP /efi/,. --boot-path= (Extended Boot Loader), [1]. , /boot/. , , /boot/. --root= . , , . 252. --image= , . --root=, , . , GPT, [4]. systemd-nspawn(4) . 252. --image-policy= , systemd.image-policy(7). , --image=, . . , <<*>>, . --install-source= --root= --image= , . : "auto" ( ), "image" "host". "auto", , , . "image" "host" , . 252. -p, --print-esp-path status. EFI (ESP) . 236. -x, --print-boot-path status. , , ESP , . , , , , ESP, . 1 , , "$(bootctl -x)/loader/entries/". , . , 2 "$(bootctl -x)/EFI/Linux/". , ( --print-boot-path, ) , systemd-boot. 242. -R, --print-root-device , . , /dev/nvme0n1p5. dm-crypt/LUKS dm-verity, . ( btrfs) . ( -RR) , <<>> , (: /dev/nvme0n1). <> ( '), /usr/ , . ( NFS, CIFS), . 254. --no-variables EFI. 220. --graceful , EFI, EFI, . is-installed, update random-seed. 244. -q, --quiet , ESP. 251. --make-entry-directory=yes|no 1 [1] , , initrd, install remove, . , --entry-token=, , $BOOT ( , --print-boot-path, . ). "no". 251. --entry-token= , . install; : "auto", "machine-id", "os-id", "os-image-id" "literal:". machine-id, (, "b0e793a9baf14b5fa13ecbe84ff637ac"). . machine-id(5), . os-id, , ID= os-release(5) ( "fedora"). , os-image-id, , IMAGE_ID= os-release ( "vendorx-cashier-system"). auto ( ), /etc/kernel/entry-token, , . , , . , IMAGE_ID= os-release, . , ID= os-release, . "machine-id" --make-entry-directory=yes, /etc/kernel/entry-token, . kernel-install(8) , , . , ; , , . , , , , () $BOOT , . , , , . ( ) . . 251. --all-architectures EFI ( --no-variables). 252. --efi-boot-option-description= , . "Linux Boot Manager". , "Linux Boot Manager", , , , ESP, , . , . , , ESP, , . 252. --dry-run unlink cleanup. unlink cleanup , , . 253. --no-pager . --json= JSON. : "short" ( ), "pretty" ( ) "off" ( JSON, ). -h, --help . --version . .EFI bootctl install update systemd-boot, ".efi.signed", ".efi". UEFI SecureBoot. , 0; . bootctl --print-root-device 80, , . $SYSTEMD_RELAX_ESP_CHECKS=1, ESP , , --esp-path=, - - . , $SYSTEMD_RELAX_XBOOTLDR_CHECKS=1 . 1. status list $ bootctl status System: Firmware: UEFI 2.40 (firmware-version) <- Secure Boot: disabled (setup) <- Secure Boot TPM2 Support: yes Boot into FW: supported <- Current Boot Loader: <- sd-boot Product: systemd-boot version implementing the Boot Loader Interface[2] Features: \/ Boot counting \/ Menu timeout control \/ One-shot menu timeout control \/ Default entry control \/ One-shot entry control \/ Support for XBOOTLDR partition \/ Support for passing random seed to OS \/ Load drop-in drivers \/ Boot loader sets ESP information \/ Menu can be disabled ESP: /dev/disk/by-partuuid/01234567-89ab-cdef-dead-beef00000000 File: /EFI/systemd/systemd-bootx64.efi Random Seed: <- , . in early boot Passed to OS: yes System Token: set Exists: yes Available Boot Loaders on ESP: ESP: /boot/efi (/dev/disk/by-partuuid/01234567-89ab-cdef-dead-beef00000000) File: /EFI/systemd/systemd-bootx64.efi (systemd-boot 251 File: /EFI/BOOT/BOOTX64.EFI (systemd-boot 251 Boot Loaders Listed in EFI Variables: Title: Linux Boot Manager ID: 0x0001 Status: active, boot-order Partition: /dev/disk/by-partuuid/... File: /EFI/systemd/systemd-bootx64.efi Title: Fedora ID: 0x0000 Status: active, boot-order Partition: /dev/disk/by-partuuid/... File: /EFI/fedora/shimx64.efi Title: Linux-Firmware-Updater ID: 0x0002 Status: active, boot-order Partition: /dev/disk/by-partuuid/... File: /EFI/fedora/fwupdx64.efi Boot Loader Entries: $BOOT: /boot/efi (/dev/disk/by-partuuid/01234567-89ab-cdef-dead-beef00000000) Default Boot Loader Entry: type: Boot Loader Specification Type #1 (.conf) title: Fedora Linux 36 (Workstation Edition) id: ... source: /boot/efi/loader/entries/entry-token-kernel-version.conf version: kernel-version machine-id: ... linux: /entry-token/kernel-version/linux initrd: /entry-token/kernel-version/initrd options: root=... $ bootctl list Boot Loader Entries: type: Boot Loader Specification Type #1 (.conf) title: Fedora Linux 36 (Workstation Edition) (default) (selected) id: ... source: /boot/efi/loader/entries/entry-token-kernel-version.conf version: kernel-version machine-id: ... linux: /entry-token/kernel-version/linux initrd: /entry-token/kernel-version/initrd options: root=... type: Boot Loader Specification Type #2 (.efi) title: Fedora Linux 35 (Workstation Edition) id: ... source: /boot/efi/EFI/Linux/fedora-kernel-version.efi version: kernel-version machine-id: ... linux: /EFI/Linux/fedora-kernel-version.efi options: root=... type: Automatic title: Reboot Into Firmware Interface id: auto-reboot-to-firmware-setup source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f "(default)" , , "(selected)" , ( ). . systemd-boot(7), [1], [2], systemd-boot-random-seed.service(8) 1. https://uapi-group.org/specifications/specs/boot_loader_specification 2. https://systemd.io/BOOT_LOADER_INTERFACE 3. https://systemd.io/RANDOM_SEEDS 4. https://uapi-group.org/specifications/specs/discoverable_partitions_specification Yuri Chornoivan ; , GNU General Public License Version 3 . . , , : . systemd 255 BOOTCTL(1)