Trashguy/PatchLevel

From FBSD_tips

Jump to: navigation, search

Back to "Admin building blocks"

THIS IS PRETTY MUCH DEFUNCT AND IS RECOMMENDED TO USE freebsd-update UTILITY


Always read /usr/src/UPDATING before preforming any update.

This is the quick and dirty way I upgrade machines to a current patch release. Always have good backup, if you nuke your system it is your fault.


[edit] Updating the Source

While the machine is in normal run mode you must update the source files to the current patch level :

*Note: Go here to find the closest server.

vi /usr/share/examples/cvsup/standard-supfile
change this line: *default host=CHANGE_THIS.FreeBSD.org to: *default host=cvsup4.FreeBSD.org 

Update the source files :

csup -L 2 /usr/share/examples/cvsup/standard-supfile

[edit] Compiling

Reboot the sytem and drop down to single user mode. After the shell is loaded :

fsck -p
mount -u /
mount -a -t ufs  
swapon -a
cd /usr/src

If I am upgrading from another patch level I will rin mergemaster :

mergemaster -p

Now to build the world :

make buildworld

After building the world I build the kernel. If you run an SMP machine (Which pretty much all are now unless it an old box) you must specify to build the SMP kernel. If you still use a single proc them just remove the option :

make buildkernel KERNCONF=SMP

[edit] Installing

Then install the kernel. This also require to have the SMP flag :

make installkernel KERNCONF=SMP

Reboot the machine and install the world :

fsck -p
mount -u /
mount -a -t ufs  
swapon -a
cd /usr/src
make installworld

Reboot and after that you should have a newly patched machine.

Trashguy 12/18/2007

Personal tools