Linux command
limine-entry-tool 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Scan for active UEFI boot entries and add them to Limine menu
limine-entry-tool --scan
Add a new kernel boot entry with initramfs and kernel file
limine-entry-tool --add "[kernel_name]" "[path/to/initramfs]" "[path/to/vmlinuz]"
Add a new Unified Kernel Image (UKI) boot entry
limine-entry-tool --add-uki "[kernel_name]" "[path/to/uki.efi]"
Remove a kernel boot entry and its associated files from the ESP
limine-entry-tool --remove "[kernel_name]"
Remove an entire OS entry by its name or machine ID
limine-entry-tool --remove-os "[OS_name|machine_id]"
Add an EFI boot entry for an alternative bootloader (e.g., Windows)
limine-entry-tool --add-efi "[EFI_entry_name]" "[path/to/loader.efi]"
说明
limine-entry-tool is a helper script for managing Limine bootloader entries on UEFI systems. It automates the process of adding, removing, and discovering boot entries in the Limine configuration. The tool can detect existing UEFI boot entries (including other operating systems like Windows) and add them to Limine's boot menu. It supports both traditional kernel/initramfs pairs and modern Unified Kernel Images (UKI). Boot entries are stored on the EFI System Partition (ESP), and the tool manages both the configuration and the actual kernel files. It is also used in the background by limine-mkinitcpio-hook to update boot entries when kernels are installed or removed.
参数
- --scan
- Scan for active UEFI boot entries and add them to the Limine configuration.
- --add _name_ _initramfs_ _vmlinuz_
- Add a new kernel boot entry with the specified name, initramfs, and kernel file.
- --add-uki _name_ _uki.efi_
- Add a Unified Kernel Image boot entry.
- --remove _name_
- Remove a kernel boot entry and its files from the EFI System Partition.
- --remove-os _name|machine_id_
- Remove an entire operating system entry by name or machine ID, leaving bootable files intact.
- --add-efi _name_ _loader.efi_
- Add an EFI boot entry for another bootloader (chainloading).
FAQ
What is the limine-entry-tool command used for?
limine-entry-tool is a helper script for managing Limine bootloader entries on UEFI systems. It automates the process of adding, removing, and discovering boot entries in the Limine configuration. The tool can detect existing UEFI boot entries (including other operating systems like Windows) and add them to Limine's boot menu. It supports both traditional kernel/initramfs pairs and modern Unified Kernel Images (UKI). Boot entries are stored on the EFI System Partition (ESP), and the tool manages both the configuration and the actual kernel files. It is also used in the background by limine-mkinitcpio-hook to update boot entries when kernels are installed or removed.
How do I run a basic limine-entry-tool example?
Run `limine-entry-tool --scan` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --scan do in limine-entry-tool?
Scan for active UEFI boot entries and add them to the Limine configuration.