Re: [K12OSN] CVsup

Eric Harrison (eharrison@mail.mesd.k12.or.us)
Wed, 13 Mar 2002 16:03:48 -0800 (PST)


On Wed, 13 Mar 2002, Stephen Wagner, District Tech. Coord. wrote:

>anyone tell me how CVsup works?  I am using freeBSD 4.4 and know how to run 
>CVsup, but what exactly do I do after that to make the files it downloads 
>update?  Can CVsup update the kernel to 4.5 which is the latest 
>out?  please help if you can.
>
>stephen wagner
>district technology coordinator
>danville public schools

Probably not too many freebsd users on this list ;-) Fortunately one
of my counterparts here runs FreeBSD on one of his boxes, here's what
he says....


---------- Forwarded message ----------

You can see in this document it say's to use the "standard-supfile".

That is to get current to the latest Release Eddition.

If you want to get the stable version you should use the "stable-supfile"

-- 
__________________________________
David Cramblett
Multnomah Education Service Dist.
Network and Information Services


    [ Part 2: "Attached Text" ]


Steps to be executed to upgrade a FreeBSD system to the latest sources.

Log into the system as "root".

Install CVSUP if it's not already installed
# cd /usr/ports/net/cvsup
Leave off the WITHOUT_X11 if you want to update X as well
# make WITHOUT_X11=YES
# make WITHOUT_X11=YES install

Edit /usr/share/examples/cvsup/standard-supfile changing the following
line:
*default host=CHANGE_THIS.FreeBSD.org
to:
*default host=cvsup4.FreeBSD.org

Update your src
# cd /usr/share/examples/cvsup
# cvsup -g -L 2 standard-supfile

Now all the current sources should be downloaded, and we need to compile
them. This is best done in single user mode to ensure that file
corruption dosnt take place. Technically, you could do it all in
multi-user mode, however it is recommended that you drop to singleuser
mode to installworld and run mergemaster.

________________________________________________________________________________
SINGLE USER MODE!

from a running system to get into single user mode:
# shutdown now

from a reboot:
# boot -s
# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

________________________________________________________________________________

On with the update..
# cd /usr/obj
# chflags -R noschg *
# rm -rf *

# cd /usr/src
# make -DNOPROFILE=true -j4 buildworld
# make -DNOPROFILE=true installworld
# make buildkernel
# make installkernel

Backup /etc and run the Mergemaster Tool, this is not trivial, read the
docs at: http://www.freebsd.org/cgi/man.cgi?query=mergemaster&sektion=8
# cp -Rp /etc /etc.old
# mergemaster

Reboot and make sure all still works with the generic kernel.

Many systems require a custom kernel. Now that we know a generic kernel
works with our newly upgraded OS, its safe to build a custom kernel.

# cd /usr/src/sys/i386/conf
# cp GENERIC YOURKERNELNAME

Edit the file YOURKERNELNAME adding or subtracting any options you wish,
refer to the LINT file in the same directory for ALL the kernel options.

# config YOURKERNELNAME
# cd ../../compile/YOURKERNELNAME
# make depend && make && make install

reboot back into multi-user mode and it should be all good.

________________________________________________________________________________




_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see