-
Notifications
You must be signed in to change notification settings - Fork 101
/
grub.cfg
100 lines (81 loc) · 3.04 KB
/
grub.cfg
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
## grub2 configuration
set default="Boot OS from first partition on first disk"
set timeout=20
set resolution=1024x768
set superusers="fai"
password fai install
if loadfont /boot/grub/ascii.pf2 ; then
insmod png
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal_output gfxterm
fi
if background_image /boot/grub/fai.png ; then
set color_normal=black/black
set color_highlight=red/black
set menu_color_normal=black/black
set menu_color_highlight=black/yellow
else
set menu_color_normal=white/black
set menu_color_highlight=black/yellow
fi
# make sure we can access partitions
insmod part_msdos
insmod part_gpt
if [ ${iso_path} ] ; then
set loopback="findiso=${iso_path}"
fi
menuentry " +------------------------------------------------------+" --unrestricted {
set gfxpayload=$resolution
}
menuentry " | Fully Automatic Installation |" --unrestricted {
set gfxpayload=$resolution
}
menuentry " | _VERSIONSTRING_ |" --unrestricted {
set gfxpayload=$resolution
}
menuentry " | (c) Thomas Lange lange@debian.org |" --unrestricted {
set gfxpayload=$resolution
}
menuentry " +------------------------------------------------------+" --unrestricted {
set gfxpayload=$resolution
}
menuentry " Username/password to start the installation: fai/install " --unrestricted {
set gfxpayload=$resolution
}
menuentry "" --unrestricted {
set gfxpayload=$resolution
}
menuentry "Client standalone installation - select installation type from menu " --users "fai" {
set gfxpayload=$resolution
linux /boot/vmlinuz FAI_FLAGS="menu,verbose,createvt" FAI_ACTION=install FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD rd.neednet ip=dhcp quiet
initrd /boot/initrd.img
}
menuentry "FAI server installation - using external DHCP" --users "fai" {
set gfxpayload=$resolution
linux /boot/vmlinuz FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD rd.neednet ip=dhcp quiet
initrd /boot/initrd.img
}
menuentry "FAI server installation - using a fixed IP" {
set gfxpayload=$resolution
linux /boot/vmlinuz FAI_FLAGS="verbose,createvt" FAI_ACTION=install ip=192.168.33.250::192.168.33.1:255.255.255.0:faiserver:eth0:off FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD quiet
initrd /boot/initrd.img
}
menuentry "Rescue system, no installation" --unrestricted {
set gfxpayload=$resolution
linux /boot/vmlinuz FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD quiet
initrd /boot/initrd.img
}
menuentry "Boot OS from first partition on first disk" --unrestricted {
if [ -d (cd) ]; then
chainloader (hd0)+1
fi
if [ "$root" = "hd1" ]; then
chainloader (hd0)+1
fi
if [ "$root" = "hd0" ]; then
set root=(hd1)
chainloader (hd1)+1
fi
}