2019/02/15

My Grub2 boot menu for Ubuntu USB bootable drive (compatible with macOS machine)

insmod png
set timeout=9

if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi

if background_image /Tokyo.png ; then
set color_normal=white/black
set menu_color_normal=white/black
set menu_color_highlight=yellow/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi

menuentry "EFI Shell" {
chainloader /EFI/BOOT/Shell.efi
}
menuentry "Memtest86+-5.01" {
set gfxpayload=keep
linux16 /Toolkit/memtest86+-5.01/memtest86+-5.01.bin
}
menuentry "Acronis True Image 2018" {
set gfxpayload=keep
set isofile="/Toolkit/Acronis2018/Acronis2018.iso"
echo "Loading..."
loopback loop $isofile
linux (loop)/dat10.dat quiet force_modules=usbhid quiet
initrd (loop)/dat11.dat (loop)/dat12.dat
}
menuentry "Win10 PE x64" {
set gfxpayload=keep
chainloader /EFI/BOOT/win10.efi
}
menuentry "clonezilla-live-2.5.5-38-amd64" {
set gfxpayload=keep
configfile /Toolkit/clonezilla-live-2.5.5-38-amd64/efi/boot/grub.cfg
}
menuentry "Try Ubuntu-18.04.1-desktop-amd64 without installing" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash ---
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu-18.04.1-desktop-amd64" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash ---
initrd /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash oem-config/enable=true ---
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep
linux /casper/vmlinuz boot=casper integrity-check quiet splash ---
initrd /casper/initrd.lz
}
menuentry "Try Ubuntu-14.04.5-desktop-amd64 without installing" {
set gfxpayload=keep
echo "Loading..."
loopback loop /Linux/ubuntu-14.04.5-desktop-amd64/ubuntu-14.04.5-desktop-amd64.iso
linux /Linux/ubuntu-14.04.5-desktop-amd64/casper/vmlinuz.efi iso-scan/filename=/Linux/ubuntu-14.04.5-desktop-amd64/ubuntu-14.04.5-desktop-amd64.iso boot=casper noprompt floppy.allowed_drive_mask=0 ignore_uuid
initrd (loop)/casper/initrd.lz
}
menuentry "Try Ubuntu-14.04.4-server-amd64 without installing" {
set gfxpayload=keep
echo "Loading..."
loopback loop /Linux/ubuntu-14.04.4-server-amd64/ubuntu-14.04.4-server-amd64.iso
linux (loop)/install/vmlinuz iso-scan/filename=/Linux/ubuntu-14.04.4-server-amd64/ubuntu-14.04.4-server-amd64.iso findiso=/Linux/ubuntu-14.04.4-server-amd64/ubuntu-14.04.4-server-amd64.iso file=/cdrom/preseed/ubuntu-server.seed
initrd (loop)/install/netboot/ubuntu-installer/amd64/initrd.gz
}
menuentry "Try Ubuntu-16.04-desktop-amd64 without installing" {
set gfxpayload=keep
echo "Loading..."
loopback loop /Linux/ubuntu-16.04-desktop-amd64/ubuntu-16.04-desktop-amd64.iso
linux /Linux/ubuntu-16.04-desktop-amd64/casper/vmlinuz.efi iso-scan/filename=/Linux/ubuntu-16.04-desktop-amd64/ubuntu-16.04-desktop-amd64.iso boot=casper noprompt floppy.allowed_drive_mask=0 ignore_uuid
initrd (loop)/casper/initrd.lz
}
menuentry "Try Ubuntu-16.04.2-server-amd64 without installing" {
set gfxpayload=keep
echo "Loading..."
loopback loop /Linux/ubuntu-16.04.2-server-amd64/ubuntu-16.04.2-server-amd64.iso
linux (loop)/install/vmlinuz iso-scan/filename=/Linux/ubuntu-16.04.2-server-amd64/ubuntu-16.04.2-server-amd64.iso findiso=/Linux/ubuntu-16.04.2-server-amd64/ubuntu-16.04.2-server-amd64.iso file=/cdrom/preseed/ubuntu-server.seed
initrd (loop)/install/netboot/ubuntu-installer/amd64/initrd.gz
}
menuentry "[Reboot]" {reboot}
menuentry "[Shutdown]" {halt}

沒有留言:

張貼留言