2008-04-29 12:17:33 +00:00
|
|
|
#
|
|
|
|
# Sample GRUB configuration file
|
|
|
|
#
|
|
|
|
|
|
|
|
# Boot automatically after 30 secs.
|
|
|
|
set timeout=30
|
|
|
|
|
|
|
|
# By default, boot the first entry.
|
|
|
|
set default=0
|
|
|
|
|
|
|
|
# Fallback to the second entry.
|
|
|
|
set fallback=1
|
|
|
|
|
|
|
|
# For booting GNU/Hurd
|
|
|
|
menuentry "GNU (aka GNU/Hurd)" {
|
|
|
|
set root=(hd0,1)
|
2008-08-13 16:59:12 +00:00
|
|
|
multiboot /boot/gnumach.gz root=device:hd0s1
|
2009-10-24 23:03:02 +00:00
|
|
|
module /hurd/ext2fs.static ext2fs --readonly \
|
2008-04-29 12:17:33 +00:00
|
|
|
--multiboot-command-line='${kernel-command-line}' \
|
|
|
|
--host-priv-port='${host-port}' \
|
|
|
|
--device-master-port='${device-port}' \
|
|
|
|
--exec-server-task='${exec-task}' -T typed '${root}' \
|
|
|
|
'$(task-create)' '$(task-resume)'
|
2009-10-24 23:03:02 +00:00
|
|
|
module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
|
2008-04-29 12:17:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# For booting GNU/Linux
|
|
|
|
menuentry "GNU/Linux" {
|
|
|
|
set root=(hd0,1)
|
|
|
|
linux /vmlinuz root=/dev/sda1
|
|
|
|
initrd /initrd.img
|
|
|
|
}
|
|
|
|
|
|
|
|
# For booting FreeBSD
|
|
|
|
menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
|
|
|
|
set root=(hd0,1,a)
|
2009-10-26 00:38:38 +00:00
|
|
|
kfreebsd /boot/kernel/kernel
|
|
|
|
kfreebsd_loadenv /boot/device.hints
|
|
|
|
kfreebsd_module /boot/splash.bmp type=splash_image_data
|
|
|
|
set kFreeBSD.vfs.root.mountfrom=ufs:ad0s1a
|
2008-04-29 12:17:33 +00:00
|
|
|
}
|
|
|
|
menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" {
|
|
|
|
set root=(hd0,1,a)
|
2009-10-26 00:38:38 +00:00
|
|
|
kfreebsd /boot/loader
|
2008-04-29 12:17:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# For booting NetBSD
|
|
|
|
menuentry "NetBSD" {
|
|
|
|
set root=(hd0,1,a)
|
2009-10-26 00:38:38 +00:00
|
|
|
knetbsd /netbsd
|
2008-04-29 12:17:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# For booting OpenBSD
|
|
|
|
menuentry "OpenBSD" {
|
|
|
|
set root=(hd0,1,a)
|
2009-10-26 00:38:38 +00:00
|
|
|
kopenbsd /bsd
|
2008-04-29 12:17:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# For booting Microsoft Windows
|
|
|
|
menuentry "Microsoft Windows" {
|
|
|
|
set root=(hd0,1)
|
|
|
|
chainloader +1
|
|
|
|
}
|
|
|
|
|
2009-09-09 22:31:51 +00:00
|
|
|
# For booting Memtest86+
|
|
|
|
menuentry "Memtest86+" {
|
|
|
|
set root=(hd0,1)
|
|
|
|
linux16 /memtest86+.bin
|
|
|
|
}
|
|
|
|
|
2008-04-29 12:17:33 +00:00
|
|
|
# Change the colors.
|
|
|
|
menuentry "Change the colors" {
|
|
|
|
set menu_color_normal=light-green/brown
|
|
|
|
set menu_color_highlight=red/blue
|
|
|
|
}
|