↑ | $Date:: 2008-07-17 #$ |
/etc/make.conf に以下を定義して、 /usr/src で「# make update」するのが楽。
SUP_UPDATE= yes SUP= /usr/local/bin/cvsup SUPFLAGS= -g -L 2 SUPHOST= cvsup.jp.FreeBSD.org SUPFILE= /conf/supfiles/stable-supfile
/etc/make.conf をバックアップしたのち、 /usr/src/share/examples/etc/make.conf をコピーして、 以下の修正をするのが無難(?)。
CFLAGS=-O -pipe NO_PROFILE=true COPTFLAGS=-O -pipe # Postfixなどを使っていてsendmailが不要な場合 NO_SENDMAIL=true
※注意
- NOPROFILEは古い→NO_PROFILE
- SENDMAIL_MC 等、余計な定義はコメントアウトしておく
# mergemaster -p
# cd /usr/obj # chflags -R noschg * # rm -rf *
# cd /usr/src # (date && make -j4 buildworld; date) |& tee buildworld.log # (date && make -j4 buildkernel; date) |& tee buildkernel.log # (date && make installkernel; date) |& tee installkernel.log
シングルユーザモード起動後
# fsck -p # mount -u / # mount -a -t ufs # swapon -a # adjkerntz -i
# cd /usr/src # (date && make installworld; date 2>&1) | tee installworld.log
必要に応じて、適宜修正。
# mergemaster -iU