fdd7 Generic kernel, adding/changing options - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old September 29th, 2010, 07:38
mfaridi's Avatar
mfaridi mfaridi is offline
Member
 
Join Date: Nov 2008
Location: Afghanistan
Posts: 622
Thanks: 161
Thanked 12 Times in 12 Posts
Default Generic kernel, adding/changing options

Can I add option on Generic Kernel , for example add option for use PF and firewall and then run these command
Code:
 cd /usr/src && make buildkernel && make installkernel
and have new kernel option with new option , and I do change name of kernel ?

can I later update system by these command
Code:
freebsd-update fetch && freebsd-update install
? and have that options I add before this to Generic Kernel ?
Reply With Quote
  #2  
Old September 29th, 2010, 16:08
mfaridi's Avatar
mfaridi mfaridi is offline
Member
 
Join Date: Nov 2008
Location: Afghanistan
Posts: 622
Thanks: 161
Thanked 12 Times in 12 Posts
Default

Can I say my kernel is Generic but I add some option to it and compile it ?
Reply With Quote
  #3  
Old September 29th, 2010, 16:20
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,702
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Of course you can modify GENERIC, but making a copy and working on it is recommended.
But do not expect freebsd-update to understand the changes. freebsd-update works on standard RELEASEs and RCs and nothing else.
__________________
May the source be with you!
Reply With Quote
  #4  
Old September 29th, 2010, 16:28
mfaridi's Avatar
mfaridi mfaridi is offline
Member
 
Join Date: Nov 2008
Location: Afghanistan
Posts: 622
Thanks: 161
Thanked 12 Times in 12 Posts
Default

Quote:
Originally Posted by Beastie View Post
Of course you can modify GENERIC, but making a copy and working on it is recommended.
But do not expect freebsd-update to understand the changes. freebsd-update works on standard RELEASEs and RCs and nothing else.
if I add option to my Generic kernel , with freebsd-update I can not fix security risk and upgrade my FreeBSD ? Am I right ?
Reply With Quote
  #5  
Old September 29th, 2010, 16:53
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,702
Thanks: 0
Thanked 301 Times in 245 Posts
Default

I am not sure how freebsd-update would behave, but I suspect it would fail during the "inspecting system" phase.
Either use a standard binary GENERIC and update/upgrade using freebsd-update or update sources, patch them and build them.
__________________
May the source be with you!
Reply With Quote
  #6  
Old September 29th, 2010, 20:48
EdGe EdGe is offline
Junior Member
 
Join Date: Aug 2010
Posts: 31
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Greetings.

There is an paragraph about that topic in the Handbook, 24.2 FreeBSD Update,
subchapter 24.2.2. Security Patches. Look for
Quote:
"The freebsd-update utility can automatically update the GENERIC
kernel only. If a custom kernel is in use,...."

Last edited by EdGe; September 30th, 2010 at 09:14.
Reply With Quote
  #7  
Old September 29th, 2010, 22:19
SIFE SIFE is offline
Member
 
Join Date: Feb 2009
Location: When ever where ever
Posts: 462
Thanks: 51
Thanked 16 Times in 15 Posts
Default

freebsd-update update only GENERIC kernel witch you installed ,fixing security risk with compiled kernel come by you not by freebsd-update otherwise it will fail .
Reply With Quote
  #8  
Old September 30th, 2010, 00:01
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,861
Thanks: 30
Thanked 1,896 Times in 1,338 Posts
Default

That's quite a lot of chaotic and sometimes inaccurate advice, people ..

http://forums.freebsd.org/showpost.p...96&postcount=3

So GENERIC (/boot/GENERIC/kernel) and CUSTOM (/boot/kernel/kernel) kernels can co-exist in a freebsd-update system. Just make sure you always rebuild your CUSTOM kernel immediately after installing updates with freebsd-update, and that freebsd-update updates the local source tree in /usr/src/ so that binaries and sources are synchronised!
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GENERIC kernel & sources pippo Installing & Upgrading 2 May 3rd, 2010 21:41
GENERIC kernel Twister General 17 December 30th, 2009 15:03
Binary update from 7.1-RELEASE-p2 to 7.2 and revert to GENERIC kernel artvolk Installing & Upgrading 6 November 11th, 2009 15:27
default to accept on GENERIC kernel Ole Firewalls 6 July 3rd, 2009 10:47
Kernel options dennylin93 FreeBSD Development 2 March 22nd, 2009 20:06


All times are GMT +1. The time now is 08:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0