Skip to content

Instantly share code, notes, and snippets.

@chenhan1218
Forked from fourdollars/grub.cfg
Last active August 29, 2015 14:17
Show Gist options
  • Save chenhan1218/d77cd45cf509ec752511 to your computer and use it in GitHub Desktop.
Save chenhan1218/d77cd45cf509ec752511 to your computer and use it in GitHub Desktop.
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 13.04 免安裝 ($bios)" {
set isofile=/iso/ubuntu-13.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 13.04 for Mac 免安裝 ($bios)" {
set isofile=/iso/ubuntu-13.04-desktop-amd64+mac.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 12.10 免安裝 ($bios)" {
set isofile=/iso/ubuntu-12.10-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz.efi.signed iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 12.04.2 免安裝 ($bios)" {
set isofile=/iso/ubuntu-12.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 12.04.1 免安裝 ($bios)" {
set isofile=/iso/ubuntu-12.04.1-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
menuentry "試用 Ubuntu 12.04 免安裝 ($bios)" {
set isofile=/iso/ubuntu-12.04-desktop-amd64.iso
loopback loop $isofile
set root=(loop)
linux (loop)/casper/vmlinuz iso-scan/filename=$isofile $options --
initrd (loop)/casper/initrd.lz
}
set debian_options="boot=live config quiet splash toram"
menuentry "試用 Debian 7.0.0 - GNOME Desktop 免安裝 ($bios)" {
set isofile=/iso/debian-live-7.0.0-amd64-gnome-desktop.iso
loopback loop $isofile
set root=(loop)
linux (loop)/live/vmlinuz findiso=$isofile $debian_options
initrd (loop)/live/initrd.img
}
menuentry "試用 Debian 7.0.0 - KDE Desktop 免安裝 ($bios)" {
set isofile=/iso/debian-live-7.0.0-amd64-kde-desktop.iso
loopback loop $isofile
set root=(loop)
linux (loop)/live/vmlinuz findiso=$isofile $debian_options
initrd (loop)/live/initrd.img
}
menuentry "試用 Debian 7.0.0 - XFCE Desktop 免安裝 ($bios)" {
set isofile=/iso/debian-live-7.0.0-amd64-xfce-desktop.iso
loopback loop $isofile
set root=(loop)
linux (loop)/live/vmlinuz findiso=$isofile $debian_options
initrd (loop)/live/initrd.img
}
menuentry "試用 Debian 7.0.0 - LXDE Desktop 免安裝 ($bios)" {
set isofile=/iso/debian-live-7.0.0-amd64-lxde-desktop.iso
loopback loop $isofile
set root=(loop)
linux (loop)/live/vmlinuz findiso=$isofile $debian_options
initrd (loop)/live/initrd.img
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment