a bunch of fixes and improvements
[automated-distro-installer] / grub.cfg.sysinfo-linode
1 ## grub2 configuration
2 set default="Netinstall"
3 set timeout=2
4 set resolution=1024x768
5
6 if loadfont /boot/grub/unicode.pf2 ; then
7 insmod png
8 set gfxmode=640x480
9 insmod gfxterm
10 insmod vbe
11 terminal_output gfxterm
12 fi
13
14 if background_image /boot/grub/fai.png ; then
15 set color_normal=black/black
16 set color_highlight=red/black
17 set menu_color_normal=black/black
18 set menu_color_highlight=black/yellow
19 else
20 set menu_color_normal=white/black
21 set menu_color_highlight=black/yellow
22 fi
23
24 # make sure we can access partitions
25 insmod part_msdos
26 insmod part_gpt
27
28 if [ ${iso_path} ] ; then
29 set loopback="findiso=${iso_path}"
30 fi
31
32 menuentry "" --unrestricted {
33 set gfxpayload=$resolution
34 }
35 menuentry " +------------------------------------------------------+" --unrestricted {
36 set gfxpayload=$resolution
37 }
38
39 menuentry " | Fully Automatic Installation |" --unrestricted {
40 set gfxpayload=$resolution
41
42 }
43 menuentry " | _VERSIONSTRING_ |" --unrestricted {
44 set gfxpayload=$resolution
45
46 }
47 menuentry " | (c) Thomas Lange lange@debian.org |" --unrestricted {
48 set gfxpayload=$resolution
49 }
50 menuentry " +------------------------------------------------------+" --unrestricted {
51 set gfxpayload=$resolution
52 }
53 }
54 menuentry "" --unrestricted {
55 set gfxpayload=$resolution
56 }
57
58 menuentry "Netinstall" {
59 set gfxpayload=$resolution
60 linux /boot/vmlinuz console=ttyS0,19200n8 FAI_FLAGS="verbose,sshd,createvt" FAI_ACTION=sysinfo FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD rd.neednet ip=dhcp quiet
61 initrd /boot/initrd.img
62 }
63
64
65 menuentry "Boot OS of first partition on first disk" --unrestricted {
66 if [ -d (cd) ]; then
67 chainloader (hd0)+1
68 fi
69
70 if [ "$root" = "hd1" ]; then
71 chainloader (hd0)+1
72 fi
73
74 if [ "$root" = "hd0" ]; then
75 set root=(hd1)
76 chainloader (hd1)+1
77 fi
78 }