aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pxe/grub/grub.cfg
blob: 5ea85ba83fc36393b149ab4b59523c1ac304ce29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
set default="0"
set timeout=-1

if loadfont unicode ; then
  set gfxmode=auto
  set locale_dir=$prefix/locale
  set lang=en_US
fi
terminal_output gfxterm

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi

function gfxmode {
        set gfxpayload="${1}"
        if [ "${1}" = "keep" ]; then
                set vt_handoff=vt.handoff=7
        else
                set vt_handoff=
        fi
}

set linux_gfx_mode=keep

export linux_gfx_mode

menuentry 'Ubuntu 14.04 amd64 uefi' {
        gfxmode $linux_gfx_mode
	linux /ubuntu/14.04/amd64/linux $vt_handoff quiet splash
        initrd /ubuntu/14.04/amd64/initrd.lz
}

menuentry 'Debian testing amd uefi' {
	gfxmode $linux_gfx_mode
	linux /debian/jessie/amd64/linux $vt_handoff quiet splash
	initrd /debian/jessie/amd64/linux.gz
}


# Don't delete please, Rockj has fucked up his grub :D
menuentry 'Rockjs Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='(hd1,gpt2)'
        search --no-floppy --fs-uuid --set=root bc211b41-74ba-494b-a9b6-f890a0295262
        echo    'Loading Linux 3.12.6 ...'
        linux   /vmlinuz-3.12.6 root=/dev/mapper/sdb4_crypt ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-3.12.6
}
menuentry 'Rockjs Debian (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='(hd1,gpt2)'
        search --no-floppy --fs-uuid --set=root bc211b41-74ba-494b-a9b6-f890a0295262
        echo    'Loading Linux 3.12.6 ...'
        linux   /vmlinuz-3.12.6 root=/dev/mapper/sdb4_crypt ro single 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-3.12.6
}