Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2005 11:25:02 -0500
From:      David Robillard <david.robillard@notarius.com>
To:        Jacob S <stormspotter@6Texans.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Kernel problems on 5.3.
Message-ID:  <20050303162502.GA6946@paris.notarius.lan>

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

You should try to CVSup your FreeBSD machines to get the latest code.
Read section A.5 of the FreeBSD Handbook. Here's the link:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html

I can't say this will fix your current problem, but for sure it can only
be good, at least from a security stand point.

You can proceed to do so via ssh.

What you want to do is this:

a) Create the file /root/cvs-supfile which contains the following:

sudo vi /root/cvs-supfile


# cvs-supfile
#
# $Id: cvs-supfile,v 1.7 2005/03/03 15:53:56 drobilla Exp drobilla $
#
# Check /usr/share/examples/cvsup/cvs-supfile for
# more information.
#
# David Robillard, December 9th, 2004

# Host from which files are fetched.
#
# *default host=cvsup.ca.freebsd.org
*default host=cvsup4.freebsd.org
# *default host=cvsup.ch.freebsd.org

# Directory where CVSup stores info about it's work.
# Will never grow beyond ~1MB and creates ${base}/sup.
# NOTE: The `refuse' file is thus: /var/db/cvsup/sup/refuse
#
*default base=/var/db/cvsup

# Directory where to place the downloaded files.
#
*default prefix=/usr

# Which version of FreeBSD do we want?
# Check http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html
# 
# BROKEN?! *default tag=RELENG_5
*default tag=RELENG_5_3

# Defaults. Don't need to change this.
# 
*default release=cvs delete use-rel-suffix compress

# What do we want to download?
#
src-all

# EOF



c) Create the cvsup directory.

sudo mkdir -p /var/db/cvsup/sup


d) Now copy the refuse file to your cvsup directory.

sudo cp /usr/share/examples/cvsup/refuse /var/db/cvsup/sup


e) Setup your environment. You should set this up in your
   favorite shell's rc file. This here is for sh(1) and bash(1).

CVSROOT=freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs
export CVSROOT


f) Proceed with cvsup. Note, the first time you run things,
   you will be prompted to accept the RSA signature of the
   server you connect to.

sudo cvsup -g -L 2 /root/cvs-supfile


g) When the download finishes, rebuild the world and the kernel.
   Note, you have a custom built kernel, so you must change KERNCONF=GENERIC
   to KERNCONF=YOUR_KERNEL_CONFIG_FILE_NAME

cd /usr/src
sudo make -j2 buildworld
sudo make -j2 buildkernel KERNCONF=GENERIC
sudo make installkernel KERNCONF=GENERIC
sudo mergemaster -p
sudo make installworld
sudo mergemaster


h) Finally, reboot the machine.

Once your machines come back online, run `uname -r` and you will notice
that the current release level of the operating system has changed. For
example, my servers have changed from "5.3-RELEASE" to "5.3-RELEASE-p5".

Cheers,

David

-- 
David Robillard
UNIX systems administrator
david.robillard@notarius.com

Notarius (TSIN) Inc.
465, rue St-Jean, suite 200
Montreal, Quebec, H2Y 2R6

Tel. : +1 514 966 0122
Fax. : +1 514 281 1226

http://www.notarius.com



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