Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 20:36:08 -0400
From:      Lee Dilkie <Lee@dilkie.com>
To:        jcr <jcr@canuck.co.uk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Rebuilding "world" without physical access
Message-ID:  <432A1378.2020601@dilkie.com>
In-Reply-To: <4329FBF1.6030003@canuck.co.uk>
References:  <07276B16-05B6-4765-B9AA-E8BBB2B634F2@uhort.no> <4329FBF1.6030003@canuck.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help


jcr wrote:

> Øystein Holmen wrote:
>
>
> I do under normal multiuser root:
>
> # cd /usr/obj
> # rm -rf *
> # cd /usr/src
> # /make clean
> # make buildworld && make buildkernel KERNCONF=FOO && make 
> installkernel KERNCONF=FOO && make installworld && mergemaster
>
> then reboot
>
> prolly not the correct way, but works for me, (never tried across 
> major version changes)


I do a

cd /usr/src/usr.sbin/mergemaster
./mergemaster.sh -pcd /usr/src

as a first step. It was recommended back in the 4.X days.

actually, my scripts come in two parts.

part 1.

cd /usr/src/usr.sbin/mergemaster
./mergemaster.sh -pcd /usr/src
cd /usr/obj
chflags -R noschg *
rm -rf *
cd /usr/src
make buildworld && make buildkernel && make installkernel

at this point you need to reboot.

when the system comes back (multiuser)

part 2:

cd /usr/src
make installworld && mergemaster

then I reboot again.

-lee



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?432A1378.2020601>