From owner-freebsd-doc Thu Dec 7 7: 4:37 2000 From owner-freebsd-doc@FreeBSD.ORG Thu Dec 7 07:04:35 2000 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by hub.freebsd.org (Postfix) with ESMTP id 1F31F37B400 for ; Thu, 7 Dec 2000 07:04:35 -0800 (PST) Received: from localhost (doug@localhost) by pemaquid.safeport.com (8.9.3/8.9.3) with ESMTP id KAA43701; Thu, 7 Dec 2000 10:04:30 -0500 (EST) (envelope-from doug@safeport.com) X-Authentication-Warning: pemaquid.safeport.com: doug owned process doing -bs Date: Thu, 7 Dec 2000 10:04:30 -0500 (EST) From: To: Szilveszter Adam Cc: doc@FreeBSD.org Subject: How do I upgrade using NFS In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi: In an earlier exchange of emails, we talked about documenting a way to have /usr/src shared between systems. Below is a method I have used on several hosts. You may include this in any manner you see fit. If you would like to to put it in the "official" format, I am happy to do so, requesting only an initial URL to get going. My original goal was to make space on two laptops I have, the larger having a 1.5 GB drive :( This saves about 600MB which let me install StarOffice and/or have some room for data. This method was proposed to me by Robert Watson. I have adapted it for my needs. The ideas are Robert's, the mistakes are mine. I have tested this on 4.0, 4.1 and have upgraded a 4.1 system to 4.2. I believe it should work on 3.5. The basic idea is that the directory names for /usr/src and /usr/obj must match on the target and build hosts. Then 'make buildworld' constructs the appropriate files and glue to do the installworld on the target host. That's it - all the rest is just details of naming, cvsup, and NFS mounting. Below are the details of my current setup as an example. Build Host: 1) export /usr/src/ and /usr/obj /usr -alldirs -maproot=0 -network 192.168.3 2) Setup the base build directory. In my case I did not want to use /usr/src, saving this for testing the next update. I chose /usr/home/fbsd/stable/ I now think this is an extra level, my original idea was to have a src and ports directory that would be maintained as a pair. To get the same level across systems the cvsup file needs a date, e.g.: *default date=2000.11.24.02.18.30 3) Build: cd /usr/home/fbsd/stable/src make -options buildworld 4) Install: mount_nfs host:/usr/home/fbsd /usr/home/fbsd mount_nfs host:/usr/obj /usr/obj cd /usr/home/fbsd/stable/src make -options installworld With the build source mounted, you build the kernel in the regular way. Ports can be built by mounting the ports directory. In my case I have a separate /var partition so /var/db/pkg reflects what is installed on each host _____ Douglas Denault doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message