建立 UEFI 開機

  1. 將格式化完成的 /dev/sdc3 掛載於 /mnt/efi1。
    [root@dywmac images]# mkdir /mnt/efi1
    [root@dywmac images]# mount /dev/sdc3 /mnt/efi1
    
  2. 將 BOOTX64.conf 及 BOOTX64.efi 複製到 /dev/sdc3 的相對目錄中。
    [root@dywmac images]# mkdir -p /mnt/efi1/EFI/BOOT/
    [root@dywmac images]# cp /mnt/efi/EFI/BOOT/BOOTX64.* /mnt/efi1/EFI/BOOT/
    
  3. BOOTX64.conf 以 BISO 開機選單檔 grub.conf 覆蓋。
    [root@dywmac images]# cp /mnt/boot/grub/grub.conf /mnt/efi1/EFI/BOOT/BOOTX64.conf 
    [root@dywmac images]# cat /mnt/efi1/EFI/BOOT/BOOTX64.conf 
    default=0
    timeout 5
    hiddenmenu
    splashimage=(hd0,0)/grub/splash.xpm.gz
    title Red Hat Linux (4.8.12-1.el6.elrepo.x86_64)
    	root (hd0,0)
    	kernel /vmlinuz-4.8.12-1.el6.elrepo.x86_64 ro root=/dev/mapper/vg_crt-root 
    rd_LVM_LV=vg_crt/root rd_LVM_LV=vg_crt/swap rd_NO_LUKS rd_NO_MD rd_NO_DM 
    LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
    crashkernel=auto scsi_mod.scan=async rhgb quiet
    	initrd /initramfs-4.8.12-1.el6.elrepo.x86_64.img
    title CRT DYW_Linux (2.6.32-573.el6.x86_64)
    	root (hd0,0)
    	kernel /vmlinuz-2.6.32-573.el6.x86_64 ro root=/dev/mapper/vg_crt-root 
    rd_LVM_LV=vg_crt/root rd_LVM_LV=vg_crt/swap rd_NO_LUKS rd_NO_MD rd_NO_DM 
    LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
    crashkernel=auto rhgb quiet
    	initrd /initramfs-2.6.32-573.el6.x86_64.img