Upgrading a removable disk installation

Dominic Fandrey kamikaze at bsdforen.de
Fri Feb 29 15:21:15 UTC 2008


Steve Bertrand wrote:
> Hi all,
> 
> I have a couple of systems that run from USB thumb sticks. These 
> machines run 6.2.
> 
> I'd like to do a typical source upgrade to 7.0 on a test machine.
> 
> To do this, I plug the USB disk into a 'host' machine, and to save space 
> on the thumb drive, I csup the sources to the standard locations on the 
> host machine.
> 
> My thumb drive 'OS' slice is mounted as /var/removable-os on the host 
> machine.
> 
> What I am unclear about is how I go about telling buildworld etc on the 
> host machine. that I want to install the updates to the 
> /var/removable-os location, instead of the default '/'.
> 
> I know how to do this with sysinstall, but I'm not sure if I need to put 
> an entry into /etc/make.conf, or use a command-line switch to get my 
> desired results.
> 
> Can someone please help clarify how I go about this?
> 
> Steve

Use DESTDIR for installkernel and installworld. This is documented in the 
build(7) manual page.

Use the -D parameter for mergemaster.


More information about the freebsd-questions mailing list