source: overlays/install-overlay/boot/grub/grub.cfg.trueos @ 7fd557a

releng/10.0.3releng/10.1releng/10.1.1
Last change on this file since 7fd557a was 7fd557a, checked in by Kris Moore <kris@…>, 9 months ago

Add grub.cfg for TrueOS installer media

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2# DO NOT EDIT THIS FILE
3#
4# It is automatically generated by grub-mkconfig using templates
5# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
6#
7
8### BEGIN /usr/local/etc/grub.d/00_header ###
9if [ -s $prefix/grubenv ]; then
10  load_env
11fi
12set default="0"
13
14if [ x"${feature_menuentry_id}" = xy ]; then
15  menuentry_id_option="--id"
16else
17  menuentry_id_option=""
18fi
19
20export menuentry_id_option
21
22if [ "${prev_saved_entry}" ]; then
23  set saved_entry="${prev_saved_entry}"
24  save_env saved_entry
25  set prev_saved_entry=
26  save_env prev_saved_entry
27  set boot_once=true
28fi
29
30function savedefault {
31  if [ -z "${boot_once}" ]; then
32    saved_entry="${chosen}"
33    save_env saved_entry
34  fi
35}
36
37function load_video {
38  insmod vbe
39  insmod vga
40  insmod video_bochs
41  insmod video_cirrus
42}
43
44
45if loadfont ($root)/boot/grub/pcbsdfont.pf2 ; then
46  # If on a PC / BIOS platform
47  if [ x"${grub_platform}" = xpc ] ; then
48    set gfxmode=auto
49    load_video
50    insmod gfxterm
51  else
52    # EFI
53    insmod efi_gop
54    insmod gfxterm
55    insmod font
56    insmod videotest
57    insmod videoinfo
58    set gfxpayload=vga=normal
59  fi
60fi
61terminal_output gfxterm
62insmod gfxmenu
63loadfont ($root)/boot/grub/themes/trueos/dejavu_10.pf2
64loadfont ($root)/boot/grub/themes/trueos/dejavu_12.pf2
65loadfont ($root)/boot/grub/themes/trueos/dejavu_14.pf2
66loadfont ($root)/boot/grub/themes/trueos/dejavu_16.pf2
67loadfont ($root)/boot/grub/themes/trueos/dejavu_bold_14.pf2
68insmod png
69set theme=($root)/boot/grub/themes/trueos/theme.txt
70export theme
71set timeout=15
72
73menuentry "Text Install / Emergency Console" {
74  kfreebsd /boot/kernel/kernel
75  kfreebsd_loadenv /boot/device.hints
76  kfreebsd_module_elf /boot/kernel/ums.ko
77  set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL
78  set kFreeBSD.kern.geom.eli.visible_passphrase=2
79  set kFreeBSD.hw.memtest.tests=0
80  set kFreeBSD.xconsole=YES
81}
Note: See TracBrowser for help on using the repository browser.