From owner-freebsd-questions Wed Apr 24 8:34:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp02.iprimus.net.au (smtp02.iprimus.net.au [203.134.65.99]) by hub.freebsd.org (Postfix) with ESMTP id 7062A37B4A1 for ; Wed, 24 Apr 2002 08:31:41 -0700 (PDT) Received: from michaelw ([203.134.17.163]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.4617); Thu, 25 Apr 2002 01:04:09 +1000 Reply-To: From: "Michael Watson" To: "'Roman Neuhauser'" Cc: Subject: RE: Existing Kernel Options Date: Wed, 24 Apr 2002 22:59:34 +0800 Message-ID: <000301c1eba0$a6156800$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 In-Reply-To: <20020424150811.GN68044@roman.mobil.cz> X-OriginalArrivalTime: 24 Apr 2002 15:04:09.0570 (UTC) FILETIME=[4955B420:01C1EBA1] 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 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. Cheers Michael -----Original Message----- From: Roman Neuhauser [mailto:neuhauser@mail.cz] Sent: Wednesday, 24 April 2002 11:08 PM To: Michael Watson Cc: freebsd-questions@FreeBSD.org Subject: Re: Existing Kernel Options > 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 -- FreeBSD 4.4-STABLE 5:07PM up 9 days, 6:19, 14 users, load averages: 0.09, 0.10, 0.08 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message