#!/bin/sh # # $dotat: buildworld/installworld.sh,v 1.55 2002/07/25 10:24:04 fanf2 Exp $ # location of the buildworld scripts cd ${0%/*} SCRIPTS=`pwd -P` # set up a load of the other stuff . $SCRIPTS/common.sh # do everything else in a subshell that records the results ( bigbanner INSTALL THE NEW WORLD banner `date` mount -v # use the newly-built utilities goodpath banner keep copy of /etc for comparison run rm -Rf $ROOT.old run cp -Rpv $ROOT $ROOT.old banner install new world cd $SRC make installworld banner `date` mount -v banner install new kernels cd $SRC for KERNEL in $KERNCONF do if [ -d /boot/$KERNEL ] then run rm -rf /boot/$KERNEL.old run mv /boot/$KERNEL /boot/$KERNEL.old fi run mkdir /boot/$KERNEL for FILE in $KERNEL/kernel $KERNEL/kernel.debug do run install -c -m 555 -o root -g wheel $OBJ/sys/$FILE /boot/$FILE done done banner install new sysinstall cd $SRC/release/sysinstall make install banner `date` mount -v # see above ) >> $LOGFILE 2>&1