Editing /boot/defaults/loader.conf

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
{{welcome}}
 
{{welcome}}
  
 +
{{maintenance}}
 
==Introduction==
 
==Introduction==
  
Line 22: Line 23:
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|kernel="kernel"
+
|kernel="kernel" # /boot sub-directory containing kernel and modules
|/boot sub-directory containing kernel and modules
+
 
|-
 
|-
|bootfile="kernel"
+
bootfile="kernel" # Kernel name (possibly absolute path)
|Kernel name (possibly absolute path)
+
 
|-
 
|-
|kernel_options=""
+
kernel_options="" # Flags to be passed to the kernel
|Flags to be passed to the kernel
+
 
|-
 
|-
|loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"
+
loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"
|
+
nextboot_conf="/boot/nextboot.conf"
 
|-
 
|-
|nextboot_conf="/boot/nextboot.conf"
+
nextboot_enable="NO"
|
+
verbose_loading="NO" # Set to YES for verbose loader output
|-
+
|nextboot_enable="NO"
+
|
+
|-
+
|verbose_loading="NO"
+
|Set to YES for verbose loader output
+
 
|}
 
|}
 
 
===  Splash screen configuration  ===
 
===  Splash screen configuration  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|splash_bmp_load="NO"
+
splash_bmp_load="NO" # Set this to YES for bmp splash screen!
|Set this to YES for bmp splash screen!
+
 
|-
 
|-
|splash_pcx_load="NO"
+
splash_pcx_load="NO" # Set this to YES for pcx splash screen!
|Set this to YES for pcx splash screen!
+
 
|-
 
|-
|splash_txt_load="NO"
+
splash_txt_load="NO" # Set this to YES for TheDraw splash screen!
|Set this to YES for TheDraw splash screen!
+
 
|-
 
|-
|vesa_load="NO"
+
vesa_load="NO" # Set this to YES to load the vesa module
|Set this to YES to load the vesa module
+
 
|-
 
|-
|bitmap_load="NO"
+
bitmap_load="NO" # Set this to YES if you want splash screen!
|Set this to YES if you want splash screen!
+
 
|-
 
|-
|bitmap_name="splash.bmp"
+
bitmap_name="splash.bmp" # Set this to the name of the file
|Set this to the name of the file
+
 
|-
 
|-
|bitmap_type="splash_image_data"  
+
bitmap_type="splash_image_data" # and place it on the module_path
|and place it on the module_path
+
 
|}
 
|}
  
 
===  Screen saver modules  ===
 
===  Screen saver modules  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
!colspan="2"| This is best done in rc.conf
+
# This is best done in rc.conf
|-
+
screensave_load="NO" # Set to YES to load a screensaver module
|screensave_load="NO"
+
screensave_name="green_saver" # Set to the name of the screensaver module
|Set to YES to load a screensaver module
+
|-
+
|screensave_name="green_saver"
+
|Set to the name of the screensaver module
+
 
|}
 
|}
 
 
===  Random number generator configuration  ===
 
===  Random number generator configuration  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
!colspan="2"|See rc.conf(5). The entropy_boot_file config variable must agree with the settings below.
+
# See rc.conf(5). The entropy_boot_file config variable must agree with the
|-
+
# settings below.
|entropy_cache_load="YES"
+
entropy_cache_load="YES" # Set this to NO to disable loading
|Set this to NO to disable loading entropy at boot time
+
# entropy at boot time
|-
+
entropy_cache_name="/boot/entropy" # Set this to the name of the file
|entropy_cache_name="/boot/entropy"
+
entropy_cache_type="boot_entropy_cache" # Required for the kernel to find
|Set this to the name of the file
+
# the boot-time entropy cache. This
|-
+
# must not change value even if the
|entropy_cache_type="boot_entropy_cache"
+
# _name above does change!
|Required for the kernel to find the boot-time entropy cache. This must not change value even if the _name above does change!
+
 
|}
 
|}
  
 
===  RAM Blacklist configuration  ===
 
===  RAM Blacklist configuration  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|ram_blacklist_load="NO"
+
ram_blacklist_load="NO" # Set this to YES to load a file
|Set this to YES to load a file containing a list of addresses to exclude from the running system.
+
# containing a list of addresses to
|-
+
# exclude from the running system.
|ram_blacklist_name="/boot/blacklist.txt"  
+
ram_blacklist_name="/boot/blacklist.txt" # Set this to the name of the file
|Set this to the name of the file
+
ram_blacklist_type="ram_blacklist" # Required for the kernel to find
|-
+
# the blacklist module
|ram_blacklist_type="ram_blacklist"
+
|Required for the kernel to find the blacklist module
+
 
|}
 
|}
  
 
===  Microcode loading configuration  ===
 
===  Microcode loading configuration  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|cpu_microcode_load="NO"
+
cpu_microcode_load="NO" # Set this to YES to load and apply a
|Set this to YES to load and apply a microcode update file during boot.
+
# microcode update file during boot.
|-
+
cpu_microcode_name="/boot/firmware/ucode.bin" # Set this to the microcode
|cpu_microcode_name="/boot/firmware/ucode.bin"  
+
      # update file path.
|Set this to the microcode update file path.
+
cpu_microcode_type="cpu_microcode" # Required for the kernel to find
|-
+
# the microcode update file.
|cpu_microcode_type="cpu_microcode"
+
|Required for the kernel to find the microcode update file.
+
 
|}
 
|}
  
Line 149: Line 118:
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|acpi_dsdt_load="NO"
+
acpi_dsdt_load="NO" # DSDT Overriding
|DSDT Overriding
+
acpi_dsdt_type="acpi_dsdt" # Don't change this
|-
+
acpi_dsdt_name="/boot/acpi_dsdt.aml"
|acpi_dsdt_type="acpi_dsdt"
+
# Override DSDT in BIOS by this file
|Don't change this
+
acpi_video_load="NO" # Load the ACPI video extension driver
|-
+
|acpi_dsdt_name="/boot/acpi_dsdt.aml"
+
|Override DSDT in BIOS by this file
+
|-
+
|acpi_video_load="NO"
+
|Load the ACPI video extension driver
+
 
|}
 
|}
  
 
===  Audit settings  ===
 
===  Audit settings  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|audit_event_load="NO"
+
audit_event_load="NO" # Preload audit_event config
|Preload audit_event config
+
audit_event_name="/etc/security/audit_event"
|-
+
audit_event_type="etc_security_audit_event"
|audit_event_name="/etc/security/audit_event"
+
|
+
|-
+
|audit_event_type="etc_security_audit_event"
+
|
+
 
|}
 
|}
  
 
===  Initial memory disk settings  ===
 
===  Initial memory disk settings  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|#mdroot_load="YES"
+
#mdroot_load="YES" # The "mdroot" prefix is arbitrary.
|The "mdroot" prefix is arbitrary.
+
 
|-
 
|-
|#mdroot_type="md_image"
+
#mdroot_type="md_image" # Create md(4) disk at boot.
|Create [https://www.unix.com/man-page/freebsd/3/md4/ md(4)] disk at boot.
+
 
|-
 
|-
|#mdroot_name="/boot/root.img"
+
#mdroot_name="/boot/root.img" # Path to a file containing the image.
|Path to a file containing the image.
+
 
|-
 
|-
|#rootdev="ufs:/dev/md0"
+
#rootdev="ufs:/dev/md0" # Set the root filesystem to md(4) device.
|Set the root filesystem to [https://www.unix.com/man-page/freebsd/3/md4/ md(4)] device.
+
 
|}
 
|}
 
 
===  Loader settings  ===
 
===  Loader settings  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|#loader_delay="3"
+
#loader_delay="3" # Delay in seconds before loading anything.
|Delay in seconds before loading anything. Default is unset and disabled (no delay).
+
# Default is unset and disabled (no delay).
 
|-
 
|-
|#autoboot_delay="10"
+
#autoboot_delay="10" # Delay in seconds before autobooting,
|Delay in seconds before autobooting, -1 for no user interrupts, NO to disable
+
# -1 for no user interrupts, NO to disable
 
|-
 
|-
|#password=""
+
#password="" # Prevent changes to boot options
|Prevent changes to boot options
+
 
|-
 
|-
|#bootlock_password=""
+
#bootlock_password="" # Prevent booting (see check-password.4th(8))
|Prevent booting (see [https://www.freebsd.org/cgi/man.cgi?query=check-password.4th&apropos=0&sektion=0&manpath=FreeBSD+9-current&arch=default&format=html check-password.4th(8)])
+
 
|-
 
|-
|#geom_eli_passphrase_prompt="NO"  
+
#geom_eli_passphrase_prompt="NO" # Prompt for geli(8) passphrase to mount root
|Prompt for [https://www.freebsd.org/cgi/man.cgi?query=geli&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html geli(8)] passphrase to mount root
+
 
|-
 
|-
|bootenv_autolist="YES"
+
bootenv_autolist="YES" # Auto populate the list of ZFS Boot Environments
|Auto populate the list of ZFS Boot Environments
+
 
|-
 
|-
|#beastie_disable="NO"
+
#beastie_disable="NO" # Turn the beastie boot menu on and off
|Turn the beastie boot menu on and off
+
 
|-
 
|-
|efi_max_resolution="1x1"
+
efi_max_resolution="1x1" # Set the max resolution for EFI loader to use:
|Set the max resolution for EFI loader to use:
+
# 480p, 720p, 1080p, 2160p/4k, 5k, or specify
* 480p, 720p, 1080p, 2160p/4k, 5k, or specify
+
# WidthxHeight (e.g. 1920x1080)
* WidthxHeight (e.g. 1920x1080)
+
 
|-
 
|-
|#kernels="kernel kernel.old"
+
#kernels="kernel kernel.old" # Kernels to display in the boot menu
|Kernels to display in the boot menu
+
 
|-
 
|-
|kernels_autodetect="YES"
+
kernels_autodetect="YES" # Auto-detect kernel directories in /boot
|Auto-detect kernel directories in /boot
+
 
|-
 
|-
|#loader_logo="orbbw"
+
#loader_logo="orbbw" # Desired logo: orbbw, orb, fbsdbw, beastiebw, beastie, none
|Desired logo: orbbw, orb, fbsdbw, beastiebw, beastie, none
+
 
|-
 
|-
|#comconsole_speed="9600"
+
#comconsole_speed="9600" # Set the current serial console speed
|Set the current serial console speed
+
 
|-
 
|-
|#console="vidconsole"
+
#console="vidconsole" # A comma separated list of console(s)
|A comma separated list of console(s)
+
 
|-
 
|-
|#currdev="disk1s1a"
+
#currdev="disk1s1a" # Set the current device
|Set the current device
+
 
|-
 
|-
|module_path="/boot/modules;/boot/dtb;/boot/dtb/overlays"
+
module_path="/boot/modules;/boot/dtb;/boot/dtb/overlays" # Set the module search path
|Set the module search path
+
 
|-
 
|-
|module_blacklist="drm drm2 radeonkms i915kms amdgpu"
+
module_blacklist="drm drm2 radeonkms i915kms amdgpu" # Loader module blacklist
|Loader module blacklist
+
 
|-
 
|-
|#prompt="\\${interpret}"
+
#prompt="\\${interpret}" # Set the command prompt
|Set the command prompt
+
 
|-
 
|-
|#root_disk_unit="0"
+
#root_disk_unit="0" # Force the root disk unit number
|Force the root disk unit number
+
 
|-
 
|-
|#rootdev="disk1s1a"
+
#rootdev="disk1s1a" # Set the root filesystem
|Set the root filesystem
+
 
|-
 
|-
|#dumpdev="disk1s1b"
+
#dumpdev="disk1s1b" # Set a dump device early in the boot process
|Set a dump device early in the boot process
+
 
|-
 
|-
|#tftp.blksize="1428"
+
#tftp.blksize="1428" # Set the RFC 2348 TFTP block size.
|Set the RFC 2348 TFTP block size. If the TFTP server does not support RFC 2348, the block size is set to 512. Valid: (8,9007)
+
# If the TFTP server does not support RFC 2348,
 +
# the block size is set to 512. Valid: (8,9007)
 
|-
 
|-
|#twiddle_divisor="1"
+
#twiddle_divisor="1" # >1 means slow down the progress indicator.
| >1 means slow down the progress indicator.
+
  
 
|}
 
|}
 
 
===  Kernel settings  ===
 
===  Kernel settings  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
!colspan="2"|The following boot_ variables are enabled by setting them to any value. Their presence in the kernel environment (see [https://www.unix.com/man-page/freebsd/1/kenv/ kenv(1)]) has the same effect as setting the given boot flag (see [https://www.unix.com/man-page/freebsd/8/boot/ boot(8)]).
+
# The following boot_ variables are enabled by setting them to any value.
 +
# Their presence in the kernel environment (see kenv(1)) has the same
 +
# effect as setting the given boot flag (see boot(8)).
 
|-
 
|-
|#boot_askname=""
+
#boot_askname="" # -a: Prompt the user for the name of the root device
| -a: Prompt the user for the name of the root device
+
 
|-
 
|-
|#boot_cdrom=""
+
#boot_cdrom="" # -C: Attempt to mount root file system from CD-ROM
| -C: Attempt to mount root file system from CD-ROM
+
 
|-
 
|-
|#boot_ddb=""
+
#boot_ddb="" # -d: Instructs the kernel to start in the DDB debugger
| -d: Instructs the kernel to start in the DDB debugger
+
 
|-
 
|-
|#boot_dfltroot=""
+
#boot_dfltroot="" # -r: Use the statically configured root file system
| -r: Use the statically configured root file system
+
 
|-
 
|-
|#boot_gdb=""
+
#boot_gdb="" # -g: Selects gdb-remote mode for the kernel debugger
| -g: Selects gdb-remote mode for the kernel debugger
+
 
|-
 
|-
|#boot_multicons=""
+
#boot_multicons="" # -D: Use multiple consoles
| -D: Use multiple consoles
+
 
|-
 
|-
|#boot_mute=""
+
#boot_mute="" # -m: Mute the console
| -m: Mute the console
+
 
|-
 
|-
|#boot_pause=""
+
#boot_pause="" # -p: Pause after each line during device probing
| -p: Pause after each line during device probing
+
 
|-
 
|-
|#boot_serial=""
+
#boot_serial="" # -h: Use serial console
| -h: Use serial console
+
 
|-
 
|-
|#boot_single=""
+
#boot_single="" # -s: Start system in single-user mode
| -s: Start system in single-user mode
+
 
|-
 
|-
|#boot_verbose=""
+
#boot_verbose="" # -v: Causes extra debugging information to be printed
| -v: Causes extra debugging information to be printed
+
 
|-
 
|-
|#init_path="/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"
+
#init_path="/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"
|Sets the list of init candidates
+
# Sets the list of init candidates
 
|-
 
|-
|#init_shell="/bin/sh"
+
#init_shell="/bin/sh" # The shell binary used by init(8).
|The shell binary used by [https://www.freebsd.org/cgi/man.cgi?query=init&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html init(8)].
+
 
|-
 
|-
|#init_script=""
+
#init_script="" # Initial script to run by init(8) before chrooting.
|Initial script to run by [https://www.freebsd.org/cgi/man.cgi?query=init&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html init(8)] before chrooting.
+
 
|-
 
|-
|#init_chroot=""
+
#init_chroot="" # Directory for init(8) to chroot into.
|Directory for [https://www.freebsd.org/cgi/man.cgi?query=init&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html init(8)] to chroot into.
+
 
|}
 
|}
  
 
=== Kernel tunables  ===
 
=== Kernel tunables  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|#hw.physmem="1G"
+
#hw.physmem="1G" # Limit physical memory. See loader(8)
|Limit physical memory. See [https://www.unix.com/man-page/freebsd/8/loader/ loader(8)]
+
 
|-
 
|-
|#kern.dfldsiz=""
+
#kern.dfldsiz="" # Set the initial data size limit
|Set the initial data size limit
+
 
|-
 
|-
|#kern.dflssiz=""
+
#kern.dflssiz="" # Set the initial stack size limit
|Set the initial stack size limit
+
 
|-
 
|-
|#kern.hz="100"
+
#kern.hz="100" # Set the kernel interval timer rate
|Set the kernel interval timer rate
+
 
|-
 
|-
|#kern.maxbcache=""
+
#kern.maxbcache="" # Set the max buffer cache KVA storage
|Set the max buffer cache KVA storage
+
 
|-
 
|-
|#kern.maxdsiz=""
+
#kern.maxdsiz="" # Set the max data size
|Set the max data size
+
 
|-
 
|-
|#kern.maxfiles=""
+
#kern.maxfiles="" # Set the sys. wide open files limit
|Set the sys. wide open files limit
+
 
|-
 
|-
|#kern.maxproc=""
+
#kern.maxproc="" # Set the maximum # of processes
|Set the maximum of processes
+
 
|-
 
|-
|#kern.maxssiz=""
+
#kern.maxssiz="" # Set the max stack size
|Set the max stack size
+
 
|-
 
|-
|#kern.maxswzone=""
+
#kern.maxswzone="" # Set the max swmeta KVA storage
|Set the max swmeta KVA storage
+
 
|-
 
|-
|#kern.maxtsiz=""
+
#kern.maxtsiz="" # Set the max text size
|Set the max text size
+
 
|-
 
|-
|#kern.maxusers="32"
+
#kern.maxusers="32" # Set size of various static tables
|Set size of various static tables
+
 
|-
 
|-
|#kern.msgbufsize="65536"
+
#kern.msgbufsize="65536" # Set size of kernel message buffer
|Set size of kernel message buffer
+
 
|-
 
|-
|#kern.nbuf=""
+
#kern.nbuf="" # Set the number of buffer headers
|Set the number of buffer headers
+
 
|-
 
|-
|#kern.ncallout=""
+
#kern.ncallout="" # Set the maximum # of timer events
|Set the maximum of timer events
+
 
|-
 
|-
|#kern.ngroups="1023"
+
#kern.ngroups="1023" # Set the maximum # of supplemental groups
|Set the maximum of supplemental groups
+
 
|-
 
|-
|#kern.sgrowsiz=""
+
#kern.sgrowsiz="" # Set the amount to grow stack
|Set the amount to grow stack
+
 
|-
 
|-
|#kern.cam.boot_delay="10000"
+
#kern.cam.boot_delay="10000" # Delay (in ms) of root mount for CAM bus
|Delay (in ms) of root mount for CAM bus registration, useful for USB sticks as root
+
# registration, useful for USB sticks as root
 
|-
 
|-
|#kern.cam.scsi_delay="2000"
+
#kern.cam.scsi_delay="2000" # Delay (in ms) before probing SCSI
|Delay (in ms) before probing SCSI
+
 
|-
 
|-
|#kern.ipc.maxsockets=""
+
#kern.ipc.maxsockets="" # Set the maximum number of sockets available
|Set the maximum number of sockets available
+
 
|-
 
|-
|#kern.ipc.nmbclusters=""
+
#kern.ipc.nmbclusters="" # Set the number of mbuf clusters
|Set the number of mbuf clusters
+
 
|-
 
|-
|#kern.ipc.nsfbufs=""
+
#kern.ipc.nsfbufs="" # Set the number of sendfile(2) bufs
|Set the number of [https://www.unix.com/man-page/freebsd/2/sendfile/ sendfile(2)] bufs
+
 
|-
 
|-
|#net.inet.tcp.tcbhashsize=""
+
#net.inet.tcp.tcbhashsize="" # Set the value of TCBHASHSIZE
|Set the value of TCBHASHSIZE
+
 
|-
 
|-
|#vfs.root.mountfrom=""
+
#vfs.root.mountfrom="" # Specify root partition
|Specify root partition
+
 
|-
 
|-
|#vm.kmem_size=""
+
#vm.kmem_size="" # Sets the size of kernel memory (bytes)
|Sets the size of kernel memory (bytes)
+
 
|-
 
|-
|#debug.kdb.break_to_debugger="0"  
+
#debug.kdb.break_to_debugger="0" # Allow console to break into debugger.
|Allow console to break into debugger.
+
 
|-
 
|-
|#debug.ktr.cpumask="0xf"
+
#debug.ktr.cpumask="0xf" # Bitmask of CPUs to enable KTR on
|Bitmask of CPUs to enable KTR on
+
 
|-
 
|-
|#debug.ktr.mask="0x1200"
+
#debug.ktr.mask="0x1200" # Bitmask of KTR events to enable
|Bitmask of KTR events to enable
+
 
|-
 
|-
|#debug.ktr.verbose="1"
+
#debug.ktr.verbose="1" # Enable console dump of KTR events
|Enable console dump of KTR events
+
 
|}
 
|}
 
 
=== Module loading syntax example  ===
 
=== Module loading syntax example  ===
 
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"  
 
|-
 
|-
! scope="col" style="width: 100px;"|'''Variable'''
+
! scope="col" style="width: 100px;"|'''Directory'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
! scope="col" style="width: 350px;"|'''Description'''
 
|-
 
|-
|#module_load="YES"
+
#module_load="YES" # loads module "module"
|loads module "module"
+
 
|-
 
|-
|#module_name="realname"
+
#module_name="realname" # uses "realname" instead of "module"
|uses "realname" instead of "module"
+
 
|-
 
|-
|#module_type="type"
+
#module_type="type" # passes "-t type" to load
|passes "-t type" to load
+
 
|-
 
|-
|#module_flags="flags"
+
#module_flags="flags" # passes "flags" to the module
|passes "flags" to the module
+
 
|-
 
|-
|#module_before="cmd"
+
#module_before="cmd" # executes "cmd" before loading the module
|executes "cmd" before loading the module
+
 
|-
 
|-
|#module_after="cmd"
+
#module_after="cmd" # executes "cmd" after loading the module
|executes "cmd" after loading the module
+
 
|-
 
|-
|#module_error="cmd"
+
#module_error="cmd" # executes "cmd" if load fails
|executes "cmd" if load fails
+
 
|}
 
|}
  
Line 496: Line 376:
 
  rc_system="openrc"
 
  rc_system="openrc"
  
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px"
 
|-
 
!colspan="3"|'''Back to the''' [[image:Icon Disti GhostBSD.png|50px|link=Directory Structure]]'''Directory Structure to [[image:Icon Disti GhostBSD.png|50px|link=.conf Files]].conf Files or to [[image:Icon Disti GhostBSD.png|50px|link=/boot/]] /boot/'''
 
|}
 
  
  
  
[[Category:Booting]]
+
[[Category:Sysutils]]

Please note that all contributions to GhostBSD Wiki are considered to be released under the Creative Commons Attribution (see GhostBSD Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: