Boot
GRUB
grub.efi.cfg
insmod part_gpt
insmod lvm
insmod mdraid1x
insmod ext2
insmod fat
insmod search
insmod loopback
insmod squash4
insmod linux
search \
--set root \
--fs-uuid BADA-5579
configfile /grub.cfg
grub.cfg
search \
--set root \
--fs-uuid 6234a0eb-29a3-a847-1dbd-5ec4bada5579
lmp=/up
sfs=filesystem.squashfs
linux ${lmp}/vmlinuz \
boot=live \
elevator=deadline \
ip=frommedia \
live-media-path=${lmp} \
toram=${sfs}
initrd ${lmp}/initrd.img
boot
grub.efi.sh
#! /bin/sh
grub-mkstandalone \
--verbose \
--compress xz \
--format x86_64-efi \
--output grub.efi \
--themes "" \
boot/grub/grub.cfg=grub.efi.cfg
grub.env
grub-editenv grub.env create
UEFI
efibootmgr --verbose
efibootmgr --timeout 0
efibootmgr --bootnum 5 --delete-bootnum
efibootmgr --bootnum 5 --inactive
efibootmgr --create \
--label grub \
--disk /dev/sdb \
--part 3 \
--loader /efi/boot/bootx64.efi
efibootmgr --bootorder 0,1,2,3,4,5,6,7,8,9
Timeout: 0 seconds
BootOrder: 0000,0001,0002,0003,0004,0005,0006,0007,0008,0009
Boot0000* grub
Boot0001* Enter Setup
Boot0002 Boot Device List
Boot0003 Network Boot
Boot0004* Launch EFI Shell
Boot0005* UEFI HGST HUS726T4TALA6L1 V1H75SAH
Boot0006* UEFI IPv4: Intel I210 Network 00 at Baseboard
Boot0007* UEFI IPv6: Intel I210 Network 00 at Baseboard
Boot0008* UEFI IPv4: Intel I210 Network 00 at Baseboard 2
Boot0009* UEFI IPv6: Intel I210 Network 00 at Baseboard 2
BIOS
Todo
BIOS