#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
#
### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if loadfont unicode ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /usr/local/etc/grub.d/00_header ###
### BEGIN /usr/local/etc/grub.d/10_kfreebsd ###
menuentry 'FreeBSD' --class freebsd --class bsd --class os $menuentry_id_option 'kfreebsd-simple-58276b5542bd8618' {
insmod part_msdos
insmod ufs2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
else
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
fi
echo 'Loading kernel of FreeBSD kernel ...'
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
insmod part_msdos
insmod ufs2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
else
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
fi
kfreebsd_module_elf /boot/kernel/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/58276b5542bd8618
set kFreeBSD.vfs.root.mountfrom.options=rw
}
submenu 'Advanced options for FreeBSD' $menuentry_id_option 'kfreebsd-advanced-58276b5542bd8618' {
menuentry 'FreeBSD, with kFreeBSD kernel' --class freebsd --class bsd --class os $menuentry_id_option 'kfreebsd-kernel-advanced-58276b5542bd8618' {
insmod part_msdos
insmod ufs2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
else
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
fi
echo 'Loading kernel of FreeBSD kernel ...'
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
insmod part_msdos
insmod ufs2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
telse
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
fi
kfreebsd_module_elf /boot/kernel/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/58276b5542bd8618
set kFreeBSD.vfs.root.mountfrom.options=rw
}
menuentry 'FreeBSD, with kFreeBSD kernel (recovery mode)' --class freebsd --class bsd --class os $menuentry_id_option 'kfreebsd-kernel-recovery-58276b5542bd8618' {
insmod part_msdos
insmod ufs2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
else
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
fi
echo 'Loading kernel of FreeBSD kernel ...'
kfreebsd /boot/kernel/kernel -s
kfreebsd_loadenv /boot/device.hints
insmod part_msdos
insmod ufs2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
else
search --no-floppy --fs-uuid --set=root 58276b5542bd8618
fi
kfreebsd_module_elf /boot/kernel/ufs.ko
set kFreeBSD.vfs.root.mountfrom=ufs:ufsid/58276b5542bd8618
set kFreeBSD.vfs.root.mountfrom.options=rw
}
}
### END /usr/local/etc/grub.d/10_kfreebsd ###
### BEGIN /usr/local/etc/grub.d/30_os-prober ###
### END /usr/local/etc/grub.d/30_os-prober ###
### BEGIN /usr/local/etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /usr/local/etc/grub.d/40_custom ###
### BEGIN /usr/local/etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /usr/local/etc/grub.d/41_custom ###