2 set default="FAI server via dns"
5 # make sure we can access partitions
12 set color_normal=white/black
13 set color_highlight=red/black
14 set menu_color_normal=white/black
15 set menu_color_highlight=black/yellow
18 # ian: Added this from fai
19 # note, we could replace faiserver with an ip if we didn't want to mess with dns.
20 # args are copied from myfai-chboot-local.
21 # Note, for a real cd or usb flash, if it is the default boot device, we would need to remove the disk
22 # after install is done very quickly, or else remove the reboot arg here
23 menuentry "FAI server via dns" {
24 set gfxpayload=$resolution
25 search --set=root --file /FAI-CD
26 linux /boot/vmlinuz libata.force=noncq FAI_FLAGS=verbose,sshd,createvt,reboot FAI_CONFIG_SRC=nfs://faiserver/srv/fai/config root=/dev/nfs nfsroot=faiserver:/srv/fai/nfsroot,vers=3,nolock rootovl ip=dhcp
27 initrd /boot/initrd.img
30 menuentry "FAI server via dns, no reboot" {
31 set gfxpayload=$resolution
32 search --set=root --file /FAI-CD
33 linux /boot/vmlinuz libata.force=noncq FAI_FLAGS=verbose,sshd,createvt FAI_CONFIG_SRC=nfs://faiserver/srv/fai/config root=/dev/nfs nfsroot=faiserver:/srv/fai/nfsroot,vers=3,nolock rootovl ip=dhcp
34 initrd /boot/initrd.img
37 # ro,noatime,vers=3,rsize=1048576,wsize=same,namelen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.2.0.2,nountvers=3,mountport=49179,mountproto=udp,lock_lock=all,addr=10.2.0.2
38 menuentry "Autodiscover the FAI server" {
39 search --set=root --file /FAI-CD
40 linux /boot/vmlinuz libata.force=noncq FAI_FLAGS="menu,verbose,createvt" fai.discover rootovl root=/dev/nfs ip=dhcp quiet
41 initrd /boot/initrd.img
44 menuentry "Boot OS from first partition on first disk" {
45 if [ "$grub_platform" = "efi" ]; then
46 if [ -f (hd0,gpt1)/efi/debian/grub.cfg ]; then
47 configfile (hd0,gpt1)/efi/debian/grub.cfg
48 elif [ -f (hd1,gpt1)/efi/debian/grub.cfg ]; then
49 configfile (hd1,gpt1)/efi/debian/grub.cfg
50 elif [ -f (hd0,gpt2)/boot/grub/grub.cfg ]; then
51 configfile (hd0,gpt2)/boot/grub/grub.cfg
52 elif [ -f (hd1,gpt2)/boot/grub/grub.cfg ]; then
53 configfile (hd1,gpt2)/boot/grub/grub.cfg
55 echo "cannot find grub.cfg"
59 elif [ -d (cd) ]; then