MicroBSD Handbook

Prev Next

8.4 The Configuration File

The general format of a configuration file is quite simple. Each line contains a keyword and one or more arguments. For simplicity, most lines only contain one argument. Anything following a # is considered a comment and ignored. The following sections describe each keyword, generally in the order they are listed in GENERIC, although some related keywords have been grouped together in a single section (such as Networking) even though they are actually scattered throughout the GENERIC file.

Let's look in the /usr/src/sys/conf/GENERIC file:

      # cat /usr/src/sys/conf/GENERIC
      
      #       $MicroBSD: GENERIC,v 1.89 2002/07/06 19:14:20 nordin Exp $
      #
      #       Machine-independent option; used by all architectures for their
      #       GENERIC kernel

      #option         INSECURE        

      option          DDB             
      #option         DDB_SAFE_CONSOLE 
      #makeoptions    DEBUG="-g"      
      #makeoptions    PROF="-pg"      
      #option         GPROF           
      option          DIAGNOSTIC      
      option          KTRACE          
      option          KMEMSTATS       
      option          PTRACE          
      
      
      
            
      option          CRYPTO          
      option          SYSVMSG         
      option          SYSVSEM         
      option          SYSVSHM         
      option          UVM_SWAP_ENCRYPT
      #option         COMPAT_23       
      option          COMPAT_25       
      option          COMPAT_43       
      #option         TCP_COMPAT_42   
      option          LKM             
      option          FFS             
      option          FFS_SOFTUPDATES 
      option          QUOTA           
      option          EXT2FS          
      option          MFS             
      #option         XFS             
      option          TCP_SACK        
      option          TCP_ECN         
      #option         TCP_FACK        
      #option         TCP_SIGNATURE
      option 	      NFS   
      option          NFSCLIENT       
      option          NFSSERVER       
      option          CD9660          
      option          MSDOSFS         
      option          FDESC           
      option          FIFO            
      option          KERNFS          
      option          NULLFS          
      option          PORTAL          
      option          PROCFS          
      option          UMAPFS          
      option          UNION           
      
      
      #option         GATEWAY         
      option          INET            
      option          ALTQ            
      option          INET6           
      option          PULLDOWN_TEST   
      option          IPSEC           
      #option         KEY             
      #option         NS              
      #option         NSIP            
      #option         IPX             
      #option         IPXIP           
      #option         ISO,TPIP        
      #option         EON             
      #option         NETATALK        
      #option         CCITT,LLC,HDLC  
      option          PPP_BSDCOMP     
      option          PPP_DEFLATE
      #option         MROUTING        
      option          NETWORK_PORT_ACL        
      

      pseudo-device   pf      1       
      pseudo-device   pflog   1       
      pseudo-device   loop    2       
      pseudo-device   bpfilter 8      
      pseudo-device   sl      2       
      pseudo-device   ppp     2       
      pseudo-device   sppp    1       
      pseudo-device   tun     2       
      pseudo-device   enc     1       
      pseudo-device   bridge  2       
      pseudo-device   vlan    2       
      pseudo-device   gre     1       
      #pseudo-device  strip   1       

      pseudo-device   pty     64      
      pseudo-device   tb      1       
      pseudo-device   vnd     4       
      pseudo-device   ccd     4       
      pseudo-device   ksyms   1       
      pseudo-device   systrace 1      
      

      # for IPv6
      pseudo-device   gif     4       
      #pseudo-device  faith   1       

      option          BOOT_CONFIG     

      # Stephanie: MicroBSD hardening
      #option         STEPHANIE_VERBOSE       

      # Stephanie: Features
      #option         SNEEK                   
      option          TPE                     
      option          PRIVACY                 
      #option         SYMLINKS                
      #option         LDSTRIP                 
      option          K5                      

      # Stephanie: Sub-options for k5
      #option         K5_SAVEKMEM             
      #option         K5_SUGIDONLY            
      #option         K5_STRICT               
      #option         K5_VERBOSE             
      

Now view the /usr/src/sys/arch/$ARCH/conf/GENERIC. In this file there are only devices and little kernel options which are explained in every line, and if you have a simple knowledge of kernel configuration you will not have much problems.Don't forget to edit the line include "../../../conf/GENERIC" and change it to include "../../../conf/NEWKERNEL" where NEWKERNEL is the name of your custom kernel configuration.


Prev Home Next
Building and Installing a Custom Kernel Boot time configuration

This, and other documents, can be downloaded from MicroBSD.

For questions about MicroBSD, read the documentation before contacting <MicroBSD Support>.
Copyright © 1995-2003 by The FreeBSD Documentation Project, OpenBSD FAQ Copyright © 1998-2003 OpenBSD, Modified for MicroBSD