| 1 |
## grub2 configuration
|
| 2 |
set default=4
|
| 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/fai.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 |
# make sure we can access partitions
|
| 24 |
insmod part_msdos
|
| 25 |
insmod part_gpt
|
| 26 |
|
| 27 |
if [ ${iso_path} ] ; then
|
| 28 |
set loopback="findiso=${iso_path}"
|
| 29 |
fi
|
| 30 |
|
| 31 |
|
| 32 |
menuentry "+------------------------------------------------------+" {
|
| 33 |
set gfxpayload=1024x768
|
| 34 |
linux /boot/vmlinuz boot=live
|
| 35 |
}
|
| 36 |
menuentry "| FAI-CD (c) Thomas Lange, lange@debian.org |" {
|
| 37 |
set gfxpayload=1024x768
|
| 38 |
linux /boot/vmlinuz boot=live
|
| 39 |
}
|
| 40 |
menuentry "| _VERSIONSTRING_ |" {
|
| 41 |
set gfxpayload=1024x768
|
| 42 |
linux /boot/vmlinuz boot=live
|
| 43 |
}
|
| 44 |
menuentry "+------------------------------------------------------+" {
|
| 45 |
set gfxpayload=1024x768
|
| 46 |
linux /boot/vmlinuz boot=live
|
| 47 |
}
|
| 48 |
|
| 49 |
menuentry "Fully Automatic Installation - demohost (pw: installme)" {
|
| 50 |
set gfxpayload=1024x768
|
| 51 |
linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=demohost
|
| 52 |
initrd /boot/initrd.img
|
| 53 |
}
|
| 54 |
|
| 55 |
menuentry "Fully Automatic Installation with GNOME (pw: installme)" {
|
| 56 |
set gfxpayload=1024x768
|
| 57 |
linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=gnomehost
|
| 58 |
initrd /boot/initrd.img
|
| 59 |
}
|
| 60 |
|
| 61 |
menuentry "Fully Automatic Installation - faiserver (pw: installme)" {
|
| 62 |
set gfxpayload=1024x768
|
| 63 |
linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=install hostname=faiserver
|
| 64 |
initrd /boot/initrd.img
|
| 65 |
}
|
| 66 |
|
| 67 |
menuentry "FAI rescue system, no installation" {
|
| 68 |
set gfxpayload=1024x768
|
| 69 |
linux /boot/vmlinuz boot=live FAI_FLAGS="verbose,createvt" FAI_ACTION=sysinfo hostname=demohost
|
| 70 |
initrd /boot/initrd.img
|
| 71 |
}
|
| 72 |
|
| 73 |
menuentry "Boot OS of first partition on first disk" {
|
| 74 |
set root=(hd0,1)
|
| 75 |
chainloader +1
|
| 76 |
}
|
| 77 |
|