2018/07/29

My Grub2 Menu Config

insmod png
insmod part_msdos
insmod fat
insmod ntfs
insmod ext2
set root='hd0,msdos1'
set timeout=10

if loadfont /boot/grub/fonts/unicode.pf2 ; then
    set gfxmode=1024x768
    insmod efi_gop
    insmod efi_uga
    insmod vbe
    insmod vga
    insmod gfxterm
    terminal_output gfxterm
fi

if background_image /boot/grub/sakura.png ; then
  set color_normal=light-gray/black
  set menu_color_normal=black/black
  set menu_color_highlight=green/dark-gray
else
  set color_normal=white/black
  set menu_color_normal=white/black
  set menu_color_highlight=green/dark-gray
fi

set default=0

menuentry "[EFI Shell]" {if [ ${grub_platform} == "efi" ]; then chainloader /EFI/BOOT/Shell.efi; fi}

menuentry "[memtest86+-5.01]" {
set gfxpayload=keep
linux16 /multiboot/memtest86+-5.01/memtest86+-5.01.bin
}

menuentry "[clonezilla-live-2.5.5-38-amd64]" {
set gfxpayload=keep
configfile /multiboot/clonezilla-live-2.5.5-38-amd64/efi/boot/grub.cfg
}

menuentry "[Acronis True Image 2018]" {
set gfxpayload=keep
set isofile="/multiboot/Acronis2018/Acronis2018.iso"
loopback loop $isofile
linux /multiboot/Acronis2018/kernel64.dat quiet
echo "Loading - This may take several seconds..."
initrd /multiboot/Acronis2018/ramdisk64.dat
}

menuentry "[Acronis True Image 2019]" {
set gfxpayload=keep
set isofile="/multiboot/Acronis2019/Acronis2019.iso"
loopback loop $isofile
linux (loop)/dat10.dat quiet force_modules=usbhid quiet
echo "Loading - This may take several seconds..."
initrd (loop)/dat11.dat (loop)/dat12.dat
}

menuentry "[Win10 PE x64]" {
set gfxpayload=keep
echo "Loading - This may take several seconds..."
if [ ${grub_platform} == "pc" ]; then ntldr /bootmgr; fi
if [ ${grub_platform} == "efi" ]; then chainloader /EFI/BOOT/win10.efi; fi
}

menuentry "[ubuntu-14.04.4-desktop-amd64]" {
set gfxpayload=keep
configfile /multiboot/ubuntu-14.04.4-desktop-amd64/grub.cfg
}

menuentry "[ubuntu-16.04.4-desktop-amd64]" {
set gfxpayload=keep
configfile /multiboot/ubuntu-16.04.4-desktop-amd64/grub.cfg
}

menuentry "[ubuntu-18.04.1-desktop-amd64]" {
set gfxpayload=keep
configfile /multiboot/ubuntu-18.04.1-desktop-amd64/grub.cfg
}

menuentry "[ubuntu-14.04.4-server-amd64]" {
set gfxpayload=keep
loopback loop /multiboot/ubuntu-14.04.4-server-amd64/ubuntu-14.04.4-server-amd64.iso
linux (loop)/install/vmlinuz iso-scan/filename=/multiboot/ubuntu-14.04.4-server-amd64/ubuntu-14.04.4-server-amd64.iso findiso=/multiboot/ubuntu-14.04.4-server-amd64/ubuntu-14.04.4-server-amd64.iso file=/cdrom/preseed/ubuntu-server.seed
echo "Loading - This may take several seconds..."
initrd (loop)/install/netboot/ubuntu-installer/amd64/initrd.gz
}

menuentry "[ubuntu-16.04.4-server-amd64]" {
set gfxpayload=keep
loopback loop /multiboot/ubuntu-16.04.4-server-amd64/ubuntu-16.04.4-server-amd64.iso
linux (loop)/install/vmlinuz iso-scan/filename=/multiboot/ubuntu-16.04.4-server-amd64/ubuntu-16.04.4-server-amd64.iso findiso=/multiboot/ubuntu-16.04.4-server-amd64/ubuntu-16.04.4-server-amd64.iso file=/cdrom/preseed/ubuntu-server.seed
echo "Loading - This may take several seconds..."
initrd (loop)/install/netboot/ubuntu-installer/amd64/initrd.gz
}

menuentry "[openSUSE-Leap-15.0-DVD-x86_64]" {
set gfxpayload=keep
loopback loop /multiboot/openSUSE-Leap-15.0-DVD-x86_64/openSUSE-Leap-15.0-DVD-x86_64.iso
linux (loop)/boot/x86_64/loader/linux ramdisk_size=512000 ramdisk_blocksize=4096 iso-scan/filename=/multiboot/openSUSE-Leap-15.0-DVD-x86_64/openSUSE-Leap-15.0-DVD-x86_64.iso isofrom=/dev/disk/by-label/MULTIBOOT:/multiboot/openSUSE-Leap-15.0-DVD-x86_64/openSUSE-Leap-15.0-DVD-x86_64.iso isofrom_device=/dev/disk/by-label/MULTIBOOT isofrom_system=/multiboot/openSUSE-Leap-15.0-DVD-x86_64/openSUSE-Leap-15.0-DVD-x86_64.iso
echo "Loading - This may take several seconds..."
initrd (loop)/boot/x86_64/loader/initrd
}

menuentry "[Fedora-Workstation-Live-x86_64-28-1.1]" {
set gfxpayload=keep
loopback loop /multiboot/Fedora-Workstation-Live-x86_64-28-1.1/Fedora-Workstation-Live-x86_64-28-1.1.iso
linux (loop)/isolinux/vmlinuz iso-scan/filename=/multiboot/Fedora-Workstation-Live-x86_64-28-1.1/Fedora-Workstation-Live-x86_64-28-1.1.iso rootfstype=auto root=live:CDLABEL=Fedora-WS-Live-28-1-1 ro rd.live.image
echo "Loading - This may take several seconds..."
initrd (loop)/isolinux/initrd.img
}

menuentry "[archlinux-2018.07.01-x86_64]" {
set gfxpayload=keep
configfile /multiboot/archlinux-2018.07.01-x86_64_Dual/grub.cfg
}

menuentry "[linuxmint-19-xfce-64bit-v2]" {
set gfxpayload=keep
configfile /multiboot/linuxmint-19-xfce-64bit-v2/grub.cfg
}

menuentry "[CentOS-7-x86_64-Live-DVD-1511]" {
set gfxpayload=keep
configfile /multiboot/CentOS-7-x86_64-Live-DVD-1511/efi/boot/grub.cfg
}

menuentry "[Reboot]" {reboot}

menuentry "[Shutdown]" {halt}

沒有留言:

張貼留言