Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
function load_efi_video {
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
}
function load_video {
set gfxmode=auto
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
insmod gfxterm
terminal_output gfxterm
}
if loadfont ($root)/boot/grub/fonts/unicode.pf2 ; then
if load_efi_video ; then
set bios="UEFI BIOS"
else
load_video
set bios="Legacy BIOS"
fi
fi
set locale_dir=($root)/boot/grub/locale
set lang=zh_TW
insmod gettext
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
set gfxpayload=keep
set options="file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash locale=zh_TW.UTF-8"
menuentry "試用 Ubuntu 16.04 免安裝 ($bios)" {
set isofile=/iso/ubuntu-16.04-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz.efi iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 16.04.1 免安裝 ($bios)" {
set isofile=/iso/ubuntu-16.04.1-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz.efi iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 16.04.2 免安裝 ($bios)" {
set isofile=/iso/ubuntu-16.04.2-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz.efi iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 16.10 免安裝 ($bios)" {
set isofile=/iso/ubuntu-16.10-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz.efi iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 17.04 免安裝 ($bios)" {
set isofile=/iso/ubuntu-17.04-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz.efi iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment