Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Nov 2014 16:20:49 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        aw1@stade.co.uk
Cc:        freebsd-stable@freebsd.org
Subject:   Re: best overall upgrade from 8.x?
Message-ID:  <B40697E4-6CBD-4F88-805F-654E9C3E8238@FreeBSD.org>
In-Reply-To: <20141115125347.GC16633@swelter.hanley.stade.co.uk>
References:  <CA%2BE3k93YhbfCN1La8sJO%2BWA-%2BeBVnSHNO-JjCsd%2BNs5%2BJq6iNw@mail.gmail.com> <CAN6yY1tcgrO4ZgOj4feFA3hcVj%2BgP0Sq5gPcu6xmFgrONaUq6Q@mail.gmail.com> <54673CA1.5020008@netfence.it> <20141115125347.GC16633@swelter.hanley.stade.co.uk>

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

--Apple-Mail=_B3576B11-077F-4AD9-963E-3E6E50EC7306
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

On 15 Nov 2014, at 13:53, Adrian Wontroba <aw1@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.  A regular boot to full multi user
mode may or may not work, depending on numerous unpredictable
circumstances. :-)


> Fortunately the quick and dirty upgrade approach works for this case.
> I did not expect it to (8-)
> 
> cd /usr/src
> mergemaster -p
> make installkernel
> make installworld
> mergemaster
> shutdown -r now

This is not the correct procedure, and just as above, it may or may not
work.  The new world you install with installworld can depend on kernel
features which are only available *after* you reboot with the kernel
just installed with installkernel.

The proper procedure, mentioned at the bottom of /usr/src/UPDATING, is:

        <make sure you have good level 0 dumps>
        make buildworld
        make kernel KERNCONF=YOUR_KERNEL_HERE
                                                        [1]
        <reboot in single user>                         [3]
        mergemaster -Fp                                 [5]
        make installworld
        mergemaster -Fi                                 [4]
        make delete-old                                 [6]
        <reboot>

Here, "make kernel" is just shorthand for "make buildkernel" followed by
"make installkernel".

-Dimitry


--Apple-Mail=_B3576B11-077F-4AD9-963E-3E6E50EC7306
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.26

iEYEARECAAYFAlRnb1cACgkQsF6jCi4glqOOIgCgnpudsGtqZN6XbaYTEvMEwiuf
IHwAnRy7ILBBvQQu0t3VtlLgZ/hY+jzW
=iawL
-----END PGP SIGNATURE-----

--Apple-Mail=_B3576B11-077F-4AD9-963E-3E6E50EC7306--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B40697E4-6CBD-4F88-805F-654E9C3E8238>