Update grub configuration.
[grml-live.git] / templates / boot / grub / grub.cfg
1 ## grub2 configuration
2 set default=0
3 set timeout=20
4
5 if loadfont /boot/grub/ascii.pf2 ; then
6    insmod png
7    set gfxmode=640x480
8    insmod gfxterm
9    insmod vbe
10    terminal_output gfxterm
11 fi
12
13 if background_image /boot/grub/grml.png ; then
14   set color_normal=black/black
15   set color_highlight=red/black
16   set menu_color_normal=black/black
17   set menu_color_highlight=black/yellow
18 else
19   set menu_color_normal=white/black
20   set menu_color_highlight=black/yellow
21 fi
22
23 menuentry "%GRML_NAME% - release %VERSION% (default)" {
24     set gfxpayload=1024x768
25     linux   /boot/%SHORT_NAME%/linux26 apm=power-off quiet boot=live bootid=%BOOTID% nomce 
26     initrd  /boot/%SHORT_NAME%/initrd.gz
27 }
28
29 menuentry "Memory test (memtest86+)" {
30     linux16 /boot/addons/memtest
31 }
32
33 menuentry "GPXE - boot via network/PXE" {
34     linux16 /boot/addons/gpxe.lkrn
35 }
36
37 menuentry "Grub - all in one image" {
38     linux   /boot/addons/memdisk
39     initrd  /boot/addons/allinone.img
40 }
41
42 menuentry "FreeDOS" {
43     linux   /boot/addons/memdisk
44     initrd  /boot/addons/balder10.imz
45 }
46
47 menuentry "MirOS bsd4grml (regular method)" {
48     multiboot   /boot/addons/bsd4grml/ldbsd.com
49 }
50
51 menuentry "MirOS bsd4grml (fallback method)" {
52     multiboot   /boot/addons/bsd4grml/ldbsd.com
53     module      /boot/addons/bsd4grml/bsd.rd
54     module      /boot/addons/bsd4grml/boot.1
55     module      /boot/addons/bsd4grml/boot.2
56     module      /boot/addons/bsd4grml/boot.3
57     module      /boot/addons/bsd4grml/boot.4
58     module      /boot/addons/bsd4grml/boot.5
59     module      /boot/addons/bsd4grml/boot.6
60     module      /boot/addons/bsd4grml/boot.cfg
61     module      /boot/grub/%GRUB_LEGACY%
62     module      /boot/grub/core.img
63 }
64
65 menuentry "Boot OS of first partition on first disk" {
66     chainloader +1
67 }
68
69 menuentry "%GRML_NAME% - enable persistent mode" {
70     set gfxpayload=1024x768x16,1024x768
71     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet persistent 
72     initrd /boot/%SHORT_NAME%/initrd.gz
73 }
74
75 menuentry "%GRML_NAME% - copy Grml to RAM" {
76     set gfxpayload=1024x768
77     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet toram=%GRML_NAME%.squashfs 
78     initrd /boot/%SHORT_NAME%/initrd.gz
79 }
80
81 menuentry "%GRML_NAME% - copy whole medium to RAM" {
82     set gfxpayload=1024x768
83     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet toram
84     initrd /boot/%SHORT_NAME%/initrd.gz
85 }
86
87 menuentry "%GRML_NAME% - start X by default" {
88     set gfxpayload=1024x768
89     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet startx=wm-ng 
90     initrd /boot/%SHORT_NAME%/initrd.gz
91 }
92
93 menuentry "%GRML_NAME% - disable framebuffer" {
94     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet vga=normal video=ofonly 
95     initrd /boot/%SHORT_NAME%/initrd.gz
96 }
97
98 menuentry "%GRML_NAME% - forensic mode" {
99     set gfxpayload=1024x768
100     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce readonly quiet nofstab noraid nolvm noautoconfig noswap raid=noautodetect 
101     initrd /boot/%SHORT_NAME%/initrd.gz
102 }
103
104 menuentry "%GRML_NAME% - failsafe mode" {
105     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet vga=normal noautoconfig atapicd noapic noacpi acpi=off nomodules nofirewire noudev nousb nohotplug noapm nopcmcia nosmp maxcpus=0 noscsi noagp nodma ide=nodma noswap nofstab nosound nogpm nosyslog nodhcp nocpu nodisc nomodem xmodule=vesa noraid nolvm noresume selinux=0 edd=off 
106     initrd /boot/%SHORT_NAME%/initrd.gz
107 }
108
109 menuentry "%GRML_NAME% - debug mode" {
110     set gfxpayload=1024x768
111     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce initcall verbose debug=vc
112     initrd /boot/%SHORT_NAME%/initrd.gz
113 }
114
115 menuentry "%GRML_NAME% - serial mode" {
116     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet vga=normal video=vesafb:off console=tty1 console=ttyS0,9600n8 
117     initrd /boot/%SHORT_NAME%/initrd.gz
118 }
119
120 # EOF