1 serial --speed=38400 |
1 if [ -s $prefix/grubenv ]; then |
2 terminal_input --append serial |
2 load_env |
3 terminal_output --append serial |
3 fi |
|
4 set default="0" |
|
5 if [ "${prev_saved_entry}" ]; then |
|
6 set saved_entry="${prev_saved_entry}" |
|
7 save_env saved_entry |
|
8 set prev_saved_entry= |
|
9 save_env prev_saved_entry |
|
10 set boot_once=true |
|
11 fi |
4 |
12 |
5 # already done during grub-install |
13 function savedefault { |
6 #insmod part_msdos |
14 if [ -z "${boot_once}" ]; then |
7 #insmod ext2 |
15 saved_entry="${chosen}" |
8 |
16 save_env saved_entry |
9 search --no-floppy --label --set [%ROOTLABEL%] |
17 fi |
10 set timeout=3 |
|
11 |
|
12 menuentry 'Linux' { |
|
13 echo 'Loading Linux...' |
|
14 linux /boot/vmlinuz-2.6.32-5-686 ro quiet console=ttyS0,38400n8 root=LABEL=[%ROOTLABEL%] |
|
15 echo 'Loading Initrd...' |
|
16 initrd /boot/initrd.img-2.6.32-5-686 |
|
17 } |
18 } |
18 |
19 |
|
20 function load_video { |
|
21 insmod vbe |
|
22 insmod vga |
|
23 insmod video_bochs |
|
24 insmod video_cirrus |
|
25 } |
|
26 |
|
27 serial --speed=38400 |
|
28 terminal_input serial |
|
29 terminal_output serial |
|
30 set timeout=5 |
|
31 |
|
32 set menu_color_normal=cyan/blue |
|
33 set menu_color_highlight=white/blue |
|
34 |
|
35 menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os { |
|
36 insmod part_msdos |
|
37 insmod ext2 |
|
38 set root='(/dev/sda,msdos1)' |
|
39 search --no-floppy --label [%ROOTLABEL%] --set |
|
40 echo 'Loading Linux 2.6.32-5-686 ...' |
|
41 linux /boot/vmlinuz-2.6.32-5-686 root=/dev/disk/by-label/[%ROOTLABEL%] ro quiet ro console=ttyS0,38400n8 |
|
42 echo 'Loading initial ramdisk ...' |
|
43 initrd /boot/initrd.img-2.6.32-5-686 |
|
44 } |
|
45 |
|
46 if [ -f $prefix/custom.cfg ]; then |
|
47 source $prefix/custom.cfg; |
|
48 fi |