Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2002 01:11:14 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        "Dmitry A. Bondareff" <freebsd@mmk.ru>
Cc:        Ruslan Ermilov <ru@FreeBSD.ORG>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Error compiling src for 4.5-RELEASE on 4.0-RELEASE
Message-ID:  <3C6244B2.EF135CC7@mindspring.com>
References:  <004501c1af93$79b0fca0$02010101@wall> <20020207103816.A18883@sunbay.com> <03ab01c1afb6$32d086c0$02010101@wall>

next in thread | previous in thread | raw e-mail | index | archive | help
"Dmitry A. Bondareff" wrote:
> 
> How to minimize traffic for upgrading remote host ?

The best upgrade process I have come up with so far for
remote hosts (or rach mount systems withoout CDROM drives
in them) is to:

1)	Create a new directory on the CDROM before you
	burn it called "upgrade".

2)	Put the CDROM copy of /stand/sysinstall in that
	directory as "sysinstall".  This is a lot harder
	than it looks.

3)	Put copies of the /dev/MAKEDEV and /dev/MAKEDEV.local
	scripts in the directory, too (ignore this step for
	5.x or other mandatory use of devfs).

Then:

A)	Mount the CDROM on a system and export it via NFS.

B)	NFS mount the exported CDROM onto the target system.

C)	Run "sysinstall" off the mounted CDROM (this only
	works because you manually copied it into the
	magic directory).

D)	Do the upgrade; tell it to use "local media", and
	then point it to the NFS mounted directory.

E)	Manually copy the MAKEDEV and MAKEDEV.local to the
	target system, prior to the "reboot".

F)	disklabel -B to install the new bootblocks (if any);
	this is reallly important if you have a FreeBSD that
	was in flux for the switchover debacle.

G)	Install the source package to overwrite /usr/src, if
	you care.  Note that this is an overwrite, so if you
	have local changes, move the directory out of the way,
	or back them up.

H)	cd /dev; sh MAKEDEV all

Other than the /etc/pam.conf crap because of the gratuitous
ssh changes, where you might have to manually add lines to
it so that you can ssh back in, this pretty much covers the
upgrade process.

This should probably be automated as part of sysinstall.  I
have no idea why doing it without booting to the new version
doesn't do the MAKEDEV stuff correctly.

-- Terry

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




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