Solved Kernel config - include & remove options

jbo@

Developer
The last part of section 8.4 of the handbook talks about using an include statement to modify only some options:
Code:
include GENERIC
ident MYKERNEL

options         IPFIREWALL
options         DUMMYNET
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPDIVERT

While this might seem like a silly question I try not to be naive wherever possible: Does this also work with nodevice and nooptions?
For example, lets assume that I am really happy with the GENERIC kernel (config) except that I want to remove the floppy disk driver. Is this a valid way of doing that?
Code:
include GENERIC
ident CARBON_X1G9

nodevice   fdc
 
The section of the handbook you linked to says
As upgrades are performed, new features added to GENERIC will also be added to the local kernel unless they are specifically prevented using nooptions or nodevice.
So i guess this should work.

In adddition, config(5)
Code:
     nodevice name [, name [...]]
     nodevices name [, name [...]]
         Remove the    specified devices from the list    of previously selected
         devices.  This directive can be used to cancel the    effects    of
         device or devices directives in files included using include.

     nooption name [, name [...]]
     nooptions name [, name [...]]
         Remove the    specified kernel options from the list of previously
         defined options.  This directive can be used to cancel the    ef-
         fects of option or    options    directives in files included using
         include.
 
Back
Top