Efibootmgr/ko

The application interacts with the UEFI firmware on the system. It is a popular tool for manipulating the EFI settings in order to create and manage boot entries capable of booting Linux (or any other EFI operating system).

The application is not a bootloader. It is a tool that interacts with the EFI firmware of the system, which itself is acting as a bootloader. Using boot entries can be created, reshuffled, edited, and removed.

Kernel
In order to boot directly from UEFI, the kernel needs to have CONFIG_EFI, CONFIG_EFI_STUB , and CONFIG_EFI_VARS support enabled:

Emerge
The package does not have any USE flags. All that is needed is to install it:

EFI vars
In order to successfully use the EFI variables filesystem must be accessible. This requires that the system has been booted in EFI mode (and not through the firmware's MBR mode) as otherwise the EFI variables themselves cannot be accessed. If the system is in MBR mode, reboot and do what is necessary in order to tell the system firmware to boot in EFI mode. Usually this involved either changing an option in the firmware's settings or selecting an EFI boot entry in the system's boot menu.

When the system is in EFI mode, run the following command to check for the existence of efivarfs:

If it is not mounted (it should be mounted through the init script), it is possible to manually mount it using the following command:

Listing boot entries
To list the current boot entries by using the  option:

Creating a boot entry
To create an EFI boot entry, a couple of arguments are passed to :


 * 로 새 항목을 만듭니다.
 * 다음에 EFI 시스템 파티션을 제공할 파티션 번호를 붙입니다
 * 다음에 EFI 시스템 파티션을 제공할 디스크 장치를 언급합니다
 * 다음에 부팅 항목에서 사용할 레이블을 붙입니다
 * 다음에 부팅할 EFI 이미지 경로를 붙입니다

예를 들자면:

Deleting a boot entry
항목을 삭제하기 전에 항목의 ID를 우선 확인하십시오.

To delete the Gentoo entry as shown above (which has Boot0002 as the identifier), ask to delete the entry with id 2, passing the arguments   with the identifier, and   to delete the entry:

추가 참조

 * EFI stub kernel explains how to configure the Linux kernel to be able to be booted from EFI directly
 * Alternative: Using efibootmgr in the Gentoo Handbook