getting an old server up to scratch...

Nikolas Britton nikolas.britton at gmail.com
Wed Dec 21 01:42:18 PST 2005


On 12/20/05, Jeff D. Hamann <jeff.hamann at forestinformatics.com> wrote:
> This is the result after a cvsup attempt using the following cvsupfile:
>
> stimpy# cd /etc
> stimpy# cat cvsupfile
> *default  host=cvsup5.FreeBSD.org
> *default  base=/usr
> *default  prefix=/usr
> *default  release=cvs
> *default  tag=RELENG_4
> *default  delete use-rel-suffix
> *default  compress
> src-all
> *default tag=.
> ports-all
> doc-all
> stimpy#
>
>
> stimpy# make buildkernel KERNCONF=MYKERNEL
>
> --------------------------------------------------------------
> >>> Kernel build for MYKERNEL started on Tue Dec 20 21:18:33 PST 2005
> --------------------------------------------------------------
> ===> MYKERNEL
> mkdir -p /usr/obj/usr/src/sys
> cd /usr/src/sys/i386/conf;
> PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
> config  -d /usr/obj/usr/src/sys/MYKERNEL  /usr/src/sys/i386/conf/MYKERNEL
> ERROR: version of config(8) does not match kernel!
> config version = 400018, version required = 400019
>
> Make sure that /usr/src/usr.sbin/config is in sync
> with your /usr/src/sys and install a new config binary
> before trying this again.
>
> If running the new config fails check your config
> file against the GENERIC or LINT config files for
> changes in config syntax, or option/device naming
> conventions
>
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> stimpy#
>

Slow down bud, your doing to many things at the same time and missing
critical steps.

Lets start from the top. Your sup file should look like this:

*default host=cvsup5.us.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_4_11
*default delete use-rel-suffix
*default compress
src-all

Normally you have at least two sup files, one for the system and the
other(s) for everything else.

After you re-cvsup you need to buildworld, not the kernel. here are
the general steps:

1. build world.
2. build kernel, use the generic kernel!!!!!!
3. install kernel.
4. reboot.
5. do a basic test of the system. if basic things such as; ls, cd,
more, and grep work then...
6. drop into single user mode ('shutdown now')
7. install world.
8. run mergemaster.
9. reboot.
10. Test out new system.
11. make and install your custom kernel, don't use your old custom
config file, make a new one based on the, new, generic kernel config
file!!
12. cvsup ports src.
13. update / install new ports.

Read the following for the details:
http://www.freebsd.org/releng/
http://www.freebsd.org/doc/en/books/handbook/synching.html
http://www.freebsd.org/doc/en/books/handbook/cvsup.html
http://www.freebsd.org/doc/en/books/handbook/makeworld.html
http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html
http://www.freebsd.org/doc/en/books/handbook/ports.html


More information about the freebsd-questions mailing list