Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2000 18:24:51 +0000
From:      Keith Jones <keithj@sse0691.bri.hp.com>
To:        doug@safeport.com
Cc:        doc@freebsd.org
Subject:   Re: How do I upgrade using NFS
Message-ID:  <20001207182450.A34016@moose.bri.hp.com>
In-Reply-To: <Pine.BSF.4.21.0012070953250.43631-100000@pemaquid.safeport.com>; from doug@safeport.com on Thu, Dec 07, 2000 at 10:04:30AM -0500
References:  <Pine.BSF.4.21.0010151652240.10879-100000@pemaquid.safeport.com> <Pine.BSF.4.21.0012070953250.43631-100000@pemaquid.safeport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

One caveat - this method doesn't work for cross-builds between incompatible
architectures, because some build tools are used in the install process.
(See PR# bin/22256 [closed].)

Keith

On Thu, Dec 07, 2000 at 10:04:30AM -0500, doug@safeport.com wrote:
> 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

-- 
Keith Jones
E-Business Service Introduction, GBIT-EMEA (Bristol)
E: keith_jones@non.hp.com
T: [+44 117] 312-7602

I don't speak for Hewlett-Packard.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001207182450.A34016>