From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 22:58:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06AEF37B401 for ; Sat, 5 Apr 2003 22:58:03 -0800 (PST) Received: from phoenix.welearn.com.au (phoenix.welearn.com.au [139.130.44.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9EF343FB1 for ; Sat, 5 Apr 2003 22:58:00 -0800 (PST) (envelope-from sue@welearn.com.au) Received: from phoenix.welearn.com.au (localhost [127.0.0.1]) h366vtYt004847; Sun, 6 Apr 2003 16:57:55 +1000 (EST) (envelope-from sue@phoenix.welearn.com.au) Received: (from sue@localhost) by phoenix.welearn.com.au (8.12.8/8.12.8/Submit) id h366vqbD004846; Sun, 6 Apr 2003 16:57:52 +1000 (EST) Date: Sun, 6 Apr 2003 16:57:51 +1000 From: Sue Blake To: Paul Hoffman Message-ID: <20030406165751.B335@welearn.com.au> References: <200304052156.04683.taxman@acd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from phoffman@proper.com on Sat, Apr 05, 2003 at 07:15:45PM -0800 cc: freebsd-questions@freebsd.org Subject: Re: Updating /usr/src after updating 4.7->4.8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 06:58:03 -0000 On Sat, Apr 05, 2003 at 07:15:45PM -0800, Paul Hoffman wrote: > At 9:56 PM -0500 4/5/03, taxman wrote: > >On Saturday 05 April 2003 09:26 pm, Paul Hoffman wrote: > >> Greetings again. On a test machine, I upgraded from fairly vanilla > >> 4.7 to 4.8 using CD-ROM and /stand/sysintall. At the beginning of the > >> upgrade, it told me that it would not upgrade /usr/src. After the > >> upgrade, I see by the dates that it upgraded some of /usr/src, but > >> not most of it. > >> > >> What is the proper way to bring /usr/src up to date so that I can > >> make kernel mods? > > > >cvsup is one of the most common ways. You need to install it first. See > >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html > > I was assuming that there was a way to get it off the CD-ROM. > Is that not true? That is true. First copy your kernel config file to at least one safe place. Use /stand/sysinstall as root, go into the post-installation configuration section, add distributions, custom selection, then select the kernel sources. You'll have to find your way around the menus a bit because I haven't seen a recent enough CD to give you more exact menu item names, sorry. There is a chance that it will see /usr/src and complain, especially if you have it populated with sources. Also you might have to clean away all of the files from the old build before using the new sources. Being the cautious type, I would start afresh by renaming /usr/src first (# mv /usr/src /usr/oldsrc), sysinstall the new kernel sources, retrieve your old kernel config file, and then remove /usr/oldsrc when you're sure you don't need it. I tend to upgrade from CD rather than cvsup because for some of us there is no choice, though I do like to have the full sources if possible. I always remove the old /usr/src before attempting a CD upgrade, because I've seen it stubbornly sing that old familiar song "no, no, cvsup is better" when it found I had sources, though I don't know if that's still a problem or not. I often forget that /usr/src contained my precious kernel config file :-) -- Regards, -*Sue*-