构建 MikroTik RouterOS CHR EFI 映像!
RouterOS chr-7.x 已包含 efi 启动文件。但它的分区类型是ext2。
ext2将分区类型从 更改为后,系统可以从 efi 启动fat。
其他,制作Hybrid MBR
(
echo 2 # use GPT
echo t # change partition code
echo 1 # select first partition
echo 8300 # change code to Linux filesystem 8300
echo r # Recovery/transformation
echo h # Hybrid MBR
echo 1 2 # partitions added to the hybrid MBR
echo n # Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N)
echo # Enter an MBR hex code (default 83)
echo y # Set the bootable flag? (Y/N)
echo # Enter an MBR hex code (default 83)
echo n # Set the bootable flag? (Y/N)
echo n # Unused partition space(s) found. Use one to protect more partitions? (Y/N)
echo w # write changes to disk
echo y # confirm
) | sudo -E gdisk /dev/nbd1