From owner-freebsd-questions Thu Apr 25 3:57:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp01.iprimus.net.au (smtp01.iprimus.net.au [203.134.64.99]) by hub.freebsd.org (Postfix) with ESMTP id A1F4837B42A for ; Thu, 25 Apr 2002 03:57:45 -0700 (PDT) Received: from michaelw ([210.50.110.228]) by smtp01.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.4617); Thu, 25 Apr 2002 20:57:43 +1000 Reply-To: From: "Michael Watson" To: Subject: FW: Existing Kernel Options Date: Thu, 25 Apr 2002 18:53:07 +0800 Message-ID: <001401c1ec47$62e51ce0$6401a8c0@intranet.toomuch.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-OriginalArrivalTime: 25 Apr 2002 10:57:44.0297 (UTC) FILETIME=[0709D590:01C1EC48] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Roman Neuhauser [mailto:neuhauser@mail.cz] > Sent: Wednesday, 24 April 2002 11:40 PM > To: Michael Watson > Cc: freebsd-questions@FreeBSD.org > Subject: Re: Existing Kernel Options > > > > From: "Michael Watson" > > To: "'Roman Neuhauser'" > > Cc: > > Subject: RE: Existing Kernel Options > > Date: Wed, 24 Apr 2002 22:59:34 +0800 > > Hi Michael, > please, don't top post. Makes it hard to follow longer threads. > > > > > From: "Michael Watson" > > > > To: > > > > Subject: Existing Kernel Options > > > > Date: Wed, 24 Apr 2002 22:34:52 +0800 > > > > > > > > Hi All > > > > > > > > I am looking to do my first kernel build, so this may be a silly > > > > question but hopefully somebody can help. > > > > > > > > I don't think the kernel distributed on my CD-ROM was compiled > > > > with the same kernel options as in the GENERIC > configuration file. > > > > I don't want to lose any existing options when I build my new > > > > kernel. > > > > > > > > Is there a way to find out what kernel options the > existing kernel > > > > was compiled with? > > > > > > Depends. /sys/i386/conf/LINT: > > > > > > # This allows you to actually store this > configuration file into > > > # the kernel binary itself, where it may be later > read by saying: > > > # strings -n 3 /kernel | sed -n 's/^___//p' > MYKERNEL > > > # > > > options INCLUDE_CONFIG_FILE # Include > this file in kernel > > > > > > Thankyou for the advice. Unfortunately, it seems that > the original > > > shipped kernel was not compiled with the > INCLUDE_CONFIG_FILE option > > > as the suggested 'strings -n 3 ...' command returned nothing. > > Umm, and what made you think the kernel on the CD is not > built from > GENERIC? IIRC that's what it is. Hi Roman Sorry about top-posting, hopefully I've got it right now. The kernel I am running from the distribution CD includes the firewall (which I can enable using the firewall_enable="YES" option in my rc.conf file). The GENRERIC kernel configuration off the same distribution CD does NOT include the IPFIREWALL option. I don't know what other options might also be missing from GENERIC when I build my new kernel. I may end up compiling a kernel that does not work on my system. I would prefer to build a kernel that has all the options of my current one, plus a couple extra that I need to include. Don't know what IIRC is, sorry. Cheers Michael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message