best overall upgrade from 8.x?

Chris H bsd-lists at bsdforge.com
Mon Nov 17 17:08:17 UTC 2014


On Sat, 15 Nov 2014 09:26:22 -0600 Adam Vande More <amvandemore at gmail.com>
wrote

> On Sat, Nov 15, 2014 at 9:20 AM, Dimitry Andric <dim at freebsd.org> wrote:
> 
> > On 15 Nov 2014, at 13:53, Adrian Wontroba <aw1 at stade.co.uk> wrote:
> > >
> > > On Sat, Nov 15, 2014 at 12:44:33PM +0100, Andrea Venturoli wrote:
> > >> On 11/15/14 05:48, Kevin Oberman wrote:
> > >>> I'd wait a month or so and, if no problems that might impact you pop
> > up,
> > >>> I'd go with 10.1
> > >> Uh... is direct upgrade (using sources) possible from 8.4 to 10.1?
> > >> No need to step through 9.x?
> > >
> > > Even the move from 9.2 (a near year old 9/stable) to 10.1 (stable/10 as
> > > of about 3 weeks ago) is slightly problematic.
> > >
> > > Following the normal upgrade procedure of installkernel and then
> > > rebooting with the userland untouched runs into a problem whereby
> > > rc.conf falls apart with a shower of eval errors, no networking, ...
> > >
> > > I do not know the cause.
> >
> > I almost certainly know the cause: you are supposed to reboot into
> > single user mode after installkernel.
> 
> 
> This is almost certainly not the cause.  Something else in the horked up
> given procedure or some omission of facts is the likely cause. Fortunately,
> nice people have already created documentation on how to do this:
> 
> https://www.freebsd.org/doc/handbook/makeworld.html
FWIW
The following has worked perfectly for ~10yrs.

NOTE personal experience indicates that regression issues introduced
by pkg(8), makes >=8.3-* the minimum starting point. YMMV

I have used the following for ~10yrs. w/o issue (comments added for
*hopeful* clarity).

The IMMEDIATELY following, is only relevant RE-building world/kernel:
cd /usr/obj
chflags -R noschg *
rm -rf *


cd /usr/src
make buildworld

NOTES:
SINGLE CPU: make -j4 buildworld

NOTE:
MULTI CPU: make -j(6 through ??) buildworld

# pre version 9
make kernel-toolchain

make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=<your_kernel_name_here>
make -DALWAYS_CHECK_MAKE installkernel KERNCONF=<your_kernel_name_here>

reboot (in single user mode)

fsck -p (optional, but a good idea)
mount -u /
mount -a -t ufs
swapon -a (most cases; optional)

adjkerntz -i (not always necessary, but DO check current time/date, just in
case)

mergemaster -p

cp -Rp /etc /etc.old

cd /usr/src

make installworld

mergemaster -F
or mergemaster -vF (my personal choice)
or mergemaster -cvF

make delete-old

reboot

HTH

--Chris

> 
> 
> -- 
> Adam
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"




More information about the freebsd-stable mailing list