source: overlays/install-overlay/boot/grub/grub.cfg @ 0a15f21

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 0a15f21 was 0a15f21, checked in by Kris Moore <kris@…>, 12 months ago

Cleanup how we load device.hints

  • Property mode set to 100644
File size: 2.2 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/pcbsd/dejavu_10.pf2
64loadfont ($root)/boot/grub/themes/pcbsd/dejavu_12.pf2
65loadfont ($root)/boot/grub/themes/pcbsd/dejavu_14.pf2
66loadfont ($root)/boot/grub/themes/pcbsd/dejavu_16.pf2
67loadfont ($root)/boot/grub/themes/pcbsd/dejavu_bold_14.pf2
68insmod png
69set theme=($root)/boot/grub/themes/pcbsd/theme.txt
70export theme
71set timeout=10
72
73menuentry "Graphical Install" {
74  kfreebsd /boot/kernel/kernel
75  kfreebsd_loadenv /boot/device.hints
76  set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL
77  set kFreeBSD.kern.geom.eli.visible_passphrase=2
78}
79
80menuentry "Run X in VESA mode" {
81  kfreebsd /boot/kernel/kernel
82  kfreebsd_loadenv /boot/device.hints
83  set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL
84  set kFreeBSD.kern.geom.eli.visible_passphrase=2
85  set kFreeBSD.xvesa=YES
86}
87
88menuentry "Emergency Console" {
89  kfreebsd /boot/kernel/kernel
90  kfreebsd_loadenv /boot/device.hints
91  set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/iso9660/PCBSD_INSTALL
92  set kFreeBSD.kern.geom.eli.visible_passphrase=2
93  set kFreeBSD.xconsole=YES
94}
Note: See TracBrowser for help on using the repository browser.