Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2008 19:01:16 +0100
From:      "Daniel Bye" <danielby@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: kernel compile e branches
Message-ID:  <20080916180104.GA60150@torus.slightlystrange.org>
In-Reply-To: <c60a46e50809160540y23e3f11dqc174ff0cdc742108@mail.gmail.com>
References:  <c60a46e50809160540y23e3f11dqc174ff0cdc742108@mail.gmail.com>

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

--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Sep 16, 2008 at 02:40:51PM +0200, Gian Paolo Buono wrote:
> Hi,
> I have upgrade my distro and kernel..with following steps:
>=20
> 1) cd /usr/src ; make update
> 2) edit /usr/src/sys/i386/conf/GENERIC file for the kernel

I usually copy the GENERIC config and edit the copy. That way, I always
have a GENERIC config to refer/revert to, should the need arise.

> 3) make buildkernel KERNCONF=3DGENERIC
> 4) make installkernel KERNCONF=3DGENERIC

You don't need to specify KERNCONF if you are using GENERIC. If you make
a copy and build from it, you can set KERNCONF in /etc/make.conf

> 5) shutdown -r now
> 6) mergemaster -p
> 7) make installworld
> 8) mergemaster -cvsi
> 9) shutdown -r now
>=20
> now my kernel is FreeBSD 7.1-PRERELEASE.
> For server in produciton which is the branches reccomended ? RELEASE ...
> STABLE ...

For production use, go with RELEASE. It is very stable, with the only chang=
es
being seciruty or other critical updates. STABLE, on the other hand, is a
somewhat more conservative development branch than CURRENT, so is prone to
change more than you might expect from day to day. However, it is very rare
that anything is actually broken.

> And where set the branche to use ?

This is determined by settings in your csup config file. This could be in
/usr/share/examples/cvsup/standard-supfile, but I make a copy and put it
in /etc/csup.system. Then set these variables in /etc/make.conf:

SUP_UPDATE=3D YES
SUPFILE=3D /etc/csup.system
SUPHOST=3D cvsup.<countrycode>.freebsd.org  # Pick a cvsup host near to you
SUP=3D /usr/bin/csup

(These allow you to cd /usr/src && make update)

Now check /etc/csup.system. Look for RELENG_7:

*default tag=3DRELENG_7  # This will get you STABLE. The tag won't change=
=20
                       # during the lifetime of the 7 branch.

or

*default tag=3DRELENG_7_0 # This is for 7.0 RELEASE. When 7.1 RELEASE is
                        # announced, change it to RELENG_7_1 to keep up.

HTH

Dan

--=20
Daniel Bye
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

--+HP7ph2BbKc20aGI
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkjP9GAACgkQixf5fBYiFmpT1ACdHjLuVsCwxg4XqAdP2H/TmD6b
dLoAn3LPW6PKkmo0s6K6+gLWY9dZJEMt
=+yOQ
-----END PGP SIGNATURE-----

--+HP7ph2BbKc20aGI--



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