7e115d6044f0ff86e1944f3bf8121289ef67955b
[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     set root=(hd0,1)
67     chainloader +1
68 }
69
70 menuentry "%GRML_NAME% - enable persistent mode" {
71     set gfxpayload=1024x768x16,1024x768
72     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet persistent 
73     initrd /boot/%SHORT_NAME%/initrd.gz
74 }
75
76 menuentry "%GRML_NAME% - copy Grml to RAM" {
77     set gfxpayload=1024x768
78     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet toram=%GRML_NAME%.squashfs 
79     initrd /boot/%SHORT_NAME%/initrd.gz
80 }
81
82 menuentry "%GRML_NAME% - copy whole medium to RAM" {
83     set gfxpayload=1024x768
84     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet toram
85     initrd /boot/%SHORT_NAME%/initrd.gz
86 }
87
88 menuentry "%GRML_NAME% - start X by default" {
89     set gfxpayload=1024x768
90     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet startx=wm-ng 
91     initrd /boot/%SHORT_NAME%/initrd.gz
92 }
93
94 menuentry "%GRML_NAME% - disable framebuffer" {
95     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet vga=normal video=ofonly 
96     initrd /boot/%SHORT_NAME%/initrd.gz
97 }
98
99 menuentry "%GRML_NAME% - forensic mode" {
100     set gfxpayload=1024x768
101     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce readonly quiet nofstab noraid nolvm noautoconfig noswap raid=noautodetect 
102     initrd /boot/%SHORT_NAME%/initrd.gz
103 }
104
105 menuentry "%GRML_NAME% - failsafe mode" {
106     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 
107     initrd /boot/%SHORT_NAME%/initrd.gz
108 }
109
110 menuentry "%GRML_NAME% - debug mode" {
111     set gfxpayload=1024x768
112     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce initcall verbose debug=vc
113     initrd /boot/%SHORT_NAME%/initrd.gz
114 }
115
116 menuentry "%GRML_NAME% - serial mode" {
117     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce quiet vga=normal video=vesafb:off console=tty1 console=ttyS0,9600n8 
118     initrd /boot/%SHORT_NAME%/initrd.gz
119 }
120
121 # EOF