MakeWorld for FreeBSD 5.x

Discussion, tips and tricks for the different Unix flavors

MakeWorld for FreeBSD 5.x

Postby curlee » Wed May 03, 2006 12:55 pm

Edit or create /etc/make.conf and enter the following options to override the defaults (located in /etc/defaults/make.conf):

CFLAGS= -O -pipe

Backup /etc
# cp -Rp /etc /etc.old

Update the Files in /etc
# cd /usr/src/usr.sbin/mergemaster
# ./ -p

Drop Into Single User Mode (you do not have to yet but it is recommended)
# shutdown now

# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a
# adjkerntz -i

Make sure the old /usr/obj is removed
# cd /usr/obj
# chflags -R noschg *
# rm -rf *

Recompile the Source
# cd /usr/src
# make -j4 buildworld

Compile and Install a New Kernel
Note: If you want to build a custom kernel, and already have a configuration file, just use KERNCONF=MYKERNEL like this:
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

Reboot into Single User Mode
note: you must do this now if you did not do it at the beginning

Install the New System Binaries
# cd /usr/src
# make installworld

Update Files Not Updated by make world
# mergemaster -v

If something goes wrong, clean out the old build and start from make buildworld:

# chflags -R noschg /usr/obj/usr
# rm -rf /usr/obj/usr
# cd /usr/src
# make cleandir
# make cleandir
Site Admin
Posts: 49
Joined: Wed May 03, 2006 12:01 pm

Return to BSD/Linux/Unix

Who is online

Users browsing this forum: No registered users and 1 guest