개요
GRUB 설정 파일을 수정하여 부팅 메뉴를 구성한다. USB의 /boot/grub/grub.cfg 파일을 연다. 불필요한 항목들은 제거하고 몇 가지 유용한 설정 메뉴를 추가한다.
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
if [ $grub_platform = pc ] ; then
set menu_color_normal=black/light-gray
set menu_color_highlight=white/magenta
fi
if [ $grub_platform = efi ] ; then
set menu_color_normal=black/light-gray
set menu_color_highlight=white/red
fi
set default=3
set timeout=120
menuentry "My Bootloader" {true}
if [ $grub_platform = pc ] ; then
menuentry "This system has been booted to the Legacy BIOS platform with USB." {true}
fi
if [ $grub_platform = efi ] ; then
menuentry "This system has been booted to the EFI platform with USB." {true}
fi
menuentry "--------------------------------------------------------------" {true}
menuentry "New bootmenu" {true}
menuentry "--------------------------------------------------------------" {true}
menuentry "System Settings" {
fwsetup
}
menuentry "System Reboot" {
reboot
}
menuentry "System Shutdown" {
halt
}
menuentry "Exit GRUB" {
exit
}

