From owner-freebsd-questions Thu Nov 12 23:29:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03866 for freebsd-questions-outgoing; Thu, 12 Nov 1998 23:29:42 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from olibrmes.olivetti.za (olibrmes.Olivetti.za [160.124.8.88]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03860 for ; Thu, 12 Nov 1998 23:29:37 -0800 (PST) (envelope-from p.chanderpaul@olsy.co.za) Received: by OLIBRMES with Internet Mail Service (5.5.1960.3) id ; Fri, 13 Nov 1998 09:28:37 +0200 Message-ID: <3D96819C11B8D011B0780020AFB865C220232D@OLIBRMES> From: Pradesh Chanderpaul To: Doug White Cc: freebsd-questions@FreeBSD.ORG Subject: RE: ISSUE : Kernel configuration file from built kernel Date: Fri, 13 Nov 1998 09:28:28 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Doug As I explained earlier, I performed the ffg sequence of events. - I installed 2.2.7 WITHOUT the source code. - I then installed the sys source code distribution. - I then needed to change the kernel configuration for PPP, so I copied the KERNEL configuration file to CUSTOM. - I made the necessary changes and made the CUSTOM kernel. - I rebooted the machine and found that I couldn't telnet to it. So I worked at the workstation console itself. I found that for example if I typed 'ping localhost' or 'netstat xxxx' functions I iether got timeouts or long waits. ( I assumed then that the old kernel contained configuration details were not on the /sys/i386/CONFIG file [which I only installed after the original kernel was built :( ] ). - I rebooted of /kernel.old and those problems seemd to go away. - I searched for the ORIGINAL kernel file. The only one was the /sys/i386/KERNEL - but I suspect that was what caused the problems in the first place. - There was a /kernel.config file but this was empty. Now I need to make the PPP changes that I set out, but I need a config file that reflected my configuration at installation time. The changes that I made to the KERNEL file is:- pseudo-device tun 3 # ^^^ changed from 1 to 3 Hope this helps. Regards Pradesh Chanderpaul -----Original Message----- From: Doug White [SMTP:dwhite@resnet.uoregon.edu] Sent: Friday, November 13, 1998 2:37 AM To: Pradesh Chanderpaul Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ISSUE : Kernel configuration file from built kernel On Thu, 12 Nov 1998, Pradesh Chanderpaul wrote: > Is there any way to extract a kernel configuration file > from a built kernel. > > - I installed FreeBSD 2.2.7 without the sys source. > - I then needed to rebuild my kernel for PPP changes. > - I then installed the sys distribution and rebuilt a copy > of the kernel configuration file provided by the > distribution. > - I rebooted and found that I had "lost" my old configuration > as MANY things (eg. ping localhost) would not work. Please explain what you mean by 'lost my old configuration.' If you were expecting the -c changes to migrate, they won't. If you want them to be present when you build new kernels change the kernel config file. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message