advice on compiling a new kernel & upgrading to the latest sources

Dino Vliet dino_vliet at yahoo.com
Sun Jan 14 19:56:31 UTC 2007


Hi folks,
from different sources I have written my steps to
compile a new kernel & upgrade to the latest sources.
Can anyone have a look into them and tell me if I
won't run into troubles or if there are better ways to
achieve the same?

Upgrade procedure to the newest freebsd kernel and
userland.

1.Make sure that the cvsup file (src-supfile) is
adjusted in the right way.
2.Cd /usr/src/sys/amd64/conf which contains the file
MYKERNEL
3.MYKERNEL is then adjusted, if necessary and copied
to root/kernels/MYKERNEL
4.Copy everything under /etc to /root/etc
5.cvsup -g -L 2  src-supfile 
6.cd /usr/src
7.make cleanworld 
8.make buildworld
9.make buildkernel KERNCONF=MYKERNEL
10.Go into single user mode
11.If the new kernel doesn't boot reboot and hit the
space bar at the boot prompt and boot kernel.old If
the new kernel boots OK mount -a 
12.cd /usr/src

13.make installkernel KERNCONF=MYKERNEL
14.Go into single user mode
15.cd /usr/src
16.mergemaster -p
17.make installworld
18.mergemaster -i
19.exit and reboot

Is this ok? Or have I forgot about something?
I'm running a freebsd 6.1 machine on a amd64 system
with an adjusted kernel called MYKERNEL.

Thanks inadvanced,
Dino


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


More information about the freebsd-questions mailing list