Fix efibootmgr command to install HOS to physical machine

This commit is contained in:
Josh Holtrop 2022-05-03 16:18:47 -04:00
parent 6b715c9051
commit 59890868c1

View File

@ -2,10 +2,15 @@
To install HOS to an EFI partition, follow these steps:
1. copy build/hello/BOOTX64.EFI to /boot/efi/EFI/HOS.EFI (as root).
1. Copy build/hello/BOOTX64.EFI to EFI partition EFI/HOS.EFI. For example, from Linux:
sudo cp build/hello/BOOTX64.EFI /boot/efi/EFI/HOS.EFI
2. Register EFI loader for HOS (one time only) with command:
efibootmgr -c -d /dev/nvme1n1p2 -l '\EFI\HOS.EFI' -L HOS
efibootmgr -c -d /dev/nvme1n1 -p 2 -l '\EFI\HOS.EFI' -L HOS
(Update the -d device parameter and -p partition parameter as appropriate)
3. Set boot order to desired boot order. Exact order will be system dependent. Example: