Support automatic findiso command and fixed gfxpayload handling. Thanks
[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 if [ ${iso_path} ] ; then
24     set loopback="findiso=${iso_path}"
25 fi
26
27 menuentry "%GRML_NAME% - release %VERSION% (default)" {
28     set gfxpayload=1024x768
29     linux   /boot/%SHORT_NAME%/linux26 apm=power-off quiet boot=live bootid=%BOOTID% "${loopback}" nomce 
30     initrd  /boot/%SHORT_NAME%/initrd.gz
31 }
32
33 menuentry "Memory test (memtest86+)" {
34     linux16 /boot/addons/memtest
35 }
36
37 menuentry "GPXE - boot via network/PXE" {
38     linux16 /boot/addons/gpxe.lkrn
39 }
40
41 menuentry "Grub - all in one image" {
42     linux   /boot/addons/memdisk
43     initrd  /boot/addons/allinone.img
44 }
45
46 menuentry "FreeDOS" {
47     linux   /boot/addons/memdisk
48     initrd  /boot/addons/balder10.imz
49 }
50
51 menuentry "MirOS bsd4grml (regular method)" {
52     multiboot   /boot/addons/bsd4grml/ldbsd.com
53 }
54
55 menuentry "MirOS bsd4grml (fallback method)" {
56     multiboot   /boot/addons/bsd4grml/ldbsd.com
57     module      /boot/addons/bsd4grml/bsd.rd
58     module      /boot/addons/bsd4grml/boot.1
59     module      /boot/addons/bsd4grml/boot.2
60     module      /boot/addons/bsd4grml/boot.3
61     module      /boot/addons/bsd4grml/boot.4
62     module      /boot/addons/bsd4grml/boot.5
63     module      /boot/addons/bsd4grml/boot.6
64     module      /boot/addons/bsd4grml/boot.cfg
65     module      /boot/grub/%GRUB_LEGACY%
66     module      /boot/grub/core.img
67 }
68
69 menuentry "Boot OS of first partition on first disk" {
70     set root=(hd0,1)
71     chainloader +1
72 }
73
74 menuentry "%GRML_NAME% - enable persistent mode" {
75     set gfxpayload=1024x768x16,1024x768
76     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quiet persistent 
77     initrd /boot/%SHORT_NAME%/initrd.gz
78 }
79
80 menuentry "%GRML_NAME% - copy Grml to RAM" {
81     set gfxpayload=1024x768
82     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quiet toram=%GRML_NAME%.squashfs 
83     initrd /boot/%SHORT_NAME%/initrd.gz
84 }
85
86 menuentry "%GRML_NAME% - copy whole medium to RAM" {
87     set gfxpayload=1024x768
88     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quiet toram 
89     initrd /boot/%SHORT_NAME%/initrd.gz
90 }
91
92 menuentry "%GRML_NAME% - start X by default" {
93     set gfxpayload=1024x768
94     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quiet startx=wm-ng 
95     initrd /boot/%SHORT_NAME%/initrd.gz
96 }
97
98 menuentry "%GRML_NAME% - disable framebuffer" {
99     set gfxpayload=text
100     linux  /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quietvideo=ofonly 
101     initrd /boot/%SHORT_NAME%/initrd.gz
102 }
103
104 menuentry "%GRML_NAME% - forensic mode" {
105     set gfxpayload=1024x768
106     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" readonly quiet nofstab noraid nolvm noautoconfig noswap raid=noautodetect 
107     initrd /boot/%SHORT_NAME%/initrd.gz
108 }
109
110 menuentry "%GRML_NAME% - failsafe mode" {
111     set gfxpayload=text
112     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quiet 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 
113     initrd /boot/%SHORT_NAME%/initrd.gz
114 }
115
116 menuentry "%GRML_NAME% - debug mode" {
117     set gfxpayload=1024x768
118     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" initcall verbose debug=vc 
119     initrd /boot/%SHORT_NAME%/initrd.gz
120 }
121
122 menuentry "%GRML_NAME% - serial mode" {
123     set gfxpayload=text
124     linux /boot/%SHORT_NAME%/linux26 apm=power-off boot=live bootid=%BOOTID% nomce "${loopback}" quiet video=vesafb:off console=tty1 console=ttyS0,9600n8 
125     initrd /boot/%SHORT_NAME%/initrd.gz
126 }
127
128 # EOF