| 1 |
## grub2 configuration |
| 2 |
set default="Boot OS from first partition on first disk" |
| 3 |
set timeout=20 |
| 4 |
|
| 5 |
# make sure we can access partitions |
| 6 |
insmod part_msdos |
| 7 |
insmod part_gpt |
| 8 |
insmod all_video |
| 9 |
insmod gfxterm |
| 10 |
|
| 11 |
set gfxmode=auto |
| 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 |
| 16 |
|
| 17 |
menuentry "" --unrestricted { |
| 18 |
set timeout=20 |
| 19 |
} |
| 20 |
|
| 21 |
menuentry " +------------------------------------------------------+" --unrestricted { |
| 22 |
set timeout=20 |
| 23 |
} |
| 24 |
|
| 25 |
menuentry " | Fully Automatic Installation |" --unrestricted { |
| 26 |
set timeout=20 |
| 27 |
|
| 28 |
} |
| 29 |
menuentry " | _VERSIONSTRING_ |" --unrestricted { |
| 30 |
set timeout=20 |
| 31 |
|
| 32 |
} |
| 33 |
menuentry " | (c) Thomas Lange [email protected] |" --unrestricted { |
| 34 |
set timeout=20 |
| 35 |
} |
| 36 |
menuentry " +------------------------------------------------------+" --unrestricted { |
| 37 |
set timeout=20 |
| 38 |
} |
| 39 |
} |
| 40 |
menuentry "" --unrestricted { |
| 41 |
set timeout=20 |
| 42 |
} |
| 43 |
|
| 44 |
menuentry "Autodiscover the FAI server" { |
| 45 |
search --set=root --file /FAI-CD |
| 46 |
linux /boot/vmlinuz FAI_FLAGS="menu,verbose,createvt" fai.discover rd.live.overlay.overlayfs root=/dev/nfs rd.neednet quiet |
| 47 |
initrd /boot/initrd.img |
| 48 |
} |
| 49 |
|
| 50 |
menuentry "Boot OS from first partition on first disk" { |
| 51 |
if [ "$grub_platform" == "efi" ]; then |
| 52 |
if [ -f (hd0,gpt1)/efi/debian/grub.cfg ]; then |
| 53 |
configfile (hd0,gpt1)/efi/debian/grub.cfg |
| 54 |
elif [ -f (hd1,gpt1)/efi/debian/grub.cfg ]; then |
| 55 |
configfile (hd1,gpt1)/efi/debian/grub.cfg |
| 56 |
elif [ -f (hd0,gpt2)/boot/grub/grub.cfg ]; then |
| 57 |
configfile (hd0,gpt2)/boot/grub/grub.cfg |
| 58 |
elif [ -f (hd1,gpt2)/boot/grub/grub.cfg ]; then |
| 59 |
configfile (hd1,gpt2)/boot/grub/grub.cfg |
| 60 |
else |
| 61 |
echo "cannot find grub.cfg" |
| 62 |
sleep 7 |
| 63 |
fi |
| 64 |
# legacy BIOS booting |
| 65 |
elif [ -d (cd) ]; then |
| 66 |
set root=(hd0) |
| 67 |
chainloader +1 |
| 68 |
else |
| 69 |
set root=(hd1) |
| 70 |
chainloader +1 |
| 71 |
fi |
| 72 |
} |