I have recently installed FreeBSD 8.2, cvsup'd everything and rebuilt the world. Now I'm moving on to the kernel. I've read about the "include" method and want to try it out, but I'm a little confused by the new DEFAULTS file and "include" method.
Normally, I would copy GENERIC, and then go through it ripping stuff out or commenting things out. From what I gather, you no longer do this with the "include" method. Instead, you sort of comment things out through the include via 'nooption' and 'nodevice', etc. ok.
So, basically I create a new, empty, kernel configuration file. Include GENERIC. And then use this file as a sort of overlay for GENERIC, covering things up, or adding new things.
My question is, do you create nooption and nodevice lines for every line in GENERIC you would normally take out? For instance, I have no need for all the various NIC lines in GENERIC. I have one NIC on this workstation and that won't change. So usually I just rip out all of the other NIC lines.
Using the include method, do I create a nooption/nodevice for each and every NIC line? And then for everything else? i.e. all the RAID devices, SCSI device etc. etc.?
I see how the "include" method can really pay off in the long run. Any/all updates are automatically included when they are released. I make changes to my file, leaving GENERIC alone. Great. But it seems like a lot of work initially. Unless I am missing something here.
I don't mind going through and creating the file. I'm just curious whether or not this is appropriate?
Also, there is a DEFAULTS file now. Does /usr/src/sys/i386/conf/DEFAULTS work the same as an include? There is no manpage for DEFAULTS, and the file is rather empty on explanations. All of the entries in DEFAULTS used to be in GENERIC. It's been a while since I've created my own kernel configuration so I am not sure when the DEFAULTS file started showing up. Or its proper usage. It seems selfexplanatory, but..
Is the DEFAULTS file a sort of mandatory 'don't remove these' additional configuration file for the kernel now? Normally I would pull out some of the things that are now included in DEFAULTS. I'm not sure what the purpose of DEFAULTS is if I'm leaving GENERIC as it is and creating my own kernel via the "include" method?. How should DEFAULTS be treated? Mandatory and should not be altered? Will the DEFAULTS file be pulled into the kernel config when I make buildkernel?
Normally, I would copy GENERIC, and then go through it ripping stuff out or commenting things out. From what I gather, you no longer do this with the "include" method. Instead, you sort of comment things out through the include via 'nooption' and 'nodevice', etc. ok.
So, basically I create a new, empty, kernel configuration file. Include GENERIC. And then use this file as a sort of overlay for GENERIC, covering things up, or adding new things.
My question is, do you create nooption and nodevice lines for every line in GENERIC you would normally take out? For instance, I have no need for all the various NIC lines in GENERIC. I have one NIC on this workstation and that won't change. So usually I just rip out all of the other NIC lines.
Using the include method, do I create a nooption/nodevice for each and every NIC line? And then for everything else? i.e. all the RAID devices, SCSI device etc. etc.?
I see how the "include" method can really pay off in the long run. Any/all updates are automatically included when they are released. I make changes to my file, leaving GENERIC alone. Great. But it seems like a lot of work initially. Unless I am missing something here.
I don't mind going through and creating the file. I'm just curious whether or not this is appropriate?
Also, there is a DEFAULTS file now. Does /usr/src/sys/i386/conf/DEFAULTS work the same as an include? There is no manpage for DEFAULTS, and the file is rather empty on explanations. All of the entries in DEFAULTS used to be in GENERIC. It's been a while since I've created my own kernel configuration so I am not sure when the DEFAULTS file started showing up. Or its proper usage. It seems selfexplanatory, but..
Is the DEFAULTS file a sort of mandatory 'don't remove these' additional configuration file for the kernel now? Normally I would pull out some of the things that are now included in DEFAULTS. I'm not sure what the purpose of DEFAULTS is if I'm leaving GENERIC as it is and creating my own kernel via the "include" method?. How should DEFAULTS be treated? Mandatory and should not be altered? Will the DEFAULTS file be pulled into the kernel config when I make buildkernel?