]> git.proxmox.com Git - grub2.git/blob - docs/grub.cfg
2008-08-13 Robert Millan <rmh@aybabtu.com>
[grub2.git] / docs / grub.cfg
1 #
2 # Sample GRUB configuration file
3 #
4
5 # Boot automatically after 30 secs.
6 set timeout=30
7
8 # By default, boot the first entry.
9 set default=0
10
11 # Fallback to the second entry.
12 set fallback=1
13
14 # For booting GNU/Hurd
15 menuentry "GNU (aka GNU/Hurd)" {
16 set root=(hd0,1)
17 multiboot /boot/gnumach.gz root=device:hd0s1
18 module /hurd/ext2fs.static --readonly \
19 --multiboot-command-line='${kernel-command-line}' \
20 --host-priv-port='${host-port}' \
21 --device-master-port='${device-port}' \
22 --exec-server-task='${exec-task}' -T typed '${root}' \
23 '$(task-create)' '$(task-resume)'
24 module /lib/ld.so.1 /hurd/exec '$(exec-task=task-create)'
25 }
26
27 # For booting GNU/Linux
28 menuentry "GNU/Linux" {
29 set root=(hd0,1)
30 linux /vmlinuz root=/dev/sda1
31 initrd /initrd.img
32 }
33
34 # For booting FreeBSD
35 menuentry "FreeBSD (or GNU/kFreeBSD), direct boot" {
36 set root=(hd0,1,a)
37 freebsd /boot/kernel/kernel
38 freebsd_loadenv /boot/device.hints
39 freebsd_module /boot/splash.bmp type=splash_image_data
40 set FreeBSD.vfs.root.mountfrom=ufs:ad0s1a
41 }
42 menuentry "FreeBSD (or GNU/kFreeBSD), via /boot/loader" {
43 set root=(hd0,1,a)
44 freebsd /boot/loader
45 }
46
47 # For booting NetBSD
48 menuentry "NetBSD" {
49 set root=(hd0,1,a)
50 netbsd /netbsd
51 }
52
53 # For booting OpenBSD
54 menuentry "OpenBSD" {
55 set root=(hd0,1,a)
56 openbsd /bsd
57 }
58
59 # For booting Microsoft Windows
60 menuentry "Microsoft Windows" {
61 set root=(hd0,1)
62 chainloader +1
63 }
64
65 # Change the colors.
66 menuentry "Change the colors" {
67 set menu_color_normal=light-green/brown
68 set menu_color_highlight=red/blue
69 }