Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2008 19:17:44 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-current@freebsd.org
Cc:        Matkhamtkha Brekher <gexlie@gmail.com>
Subject:   Re: reboot during upgrade
Message-ID:  <200808301917.52556.doconnor@gsoft.com.au>
In-Reply-To: <5AEFCC1D-F758-4EA6-B2FA-180C2C689938@mac.com>
References:  <53cc795f0808291515m4fe9e49k903347d1e89ec07e@mail.gmail.com> <5AEFCC1D-F758-4EA6-B2FA-180C2C689938@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2407423.lJYkaY7XYu
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sat, 30 Aug 2008, Chuck Swiger wrote:
> On Aug 29, 2008, at 3:15 PM, Matkhamtkha Brekher wrote:
> > #  1.  `cd /usr/src'       (or to the directory containing your
> > source tree).
> > #  2.  `make buildworld'
> > #  3.  `make buildkernel KERNCONF=3DYOUR_KERNEL_HERE'     (default is
> > GENERIC).
> > #  4.  `make installkernel KERNCONF=3DYOUR_KERNEL_HERE'   (default is
> > GENERIC).
> > #       [steps 3. & 4. can be combined by using the "kernel"
> > target] #  5.  `reboot'        (in single user mode: boot -s from
> > the loader prompt).
> > #  6.  `mergemaster -p'
> > #  7.  `make installworld'
> > #  8.  `make delete-old'
> > #  9.  `mergemaster'
> > # 10.  `reboot'
> > # 11.  `make delete-old-libs' (in case no 3rd party program uses
> > them anymore)
> >
> > what consequences would appear if i'll reboot the machine once
> > during the upgrade?
>
> If you don't reboot in order to be using the new kernel before
> installing the new userland, you'll install critical things like sh
> and make which might not run using the old kernel.  You might find
> that the installworld part fails in the middle, and the system is
> left in an unusable state which is very hard to recover from.

You could do it once and avoid step 10.

Once you have mergemaster'd and deleted the old libs (if you are going=20
to) you can press ctrl-d to exit the single user shell and the system=20
will boot as normal.

Avoiding the reboot at 4 is risky but the risk is low if you're not=20
upgrading a major release number (eg 6 -> 7)

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

--nextPart2407423.lJYkaY7XYu
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iD8DBQBIuRdI5ZPcIHs/zowRAvw9AKCRGocSzoDjfX6JFileBDNkrYpQgQCaA02P
eDq4QbaT0H1EL4BCZm40g5A=
=gSeJ
-----END PGP SIGNATURE-----

--nextPart2407423.lJYkaY7XYu--



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