Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2007 22:57:37 +0200
From:      Pietro Cerutti <gahr@gahr.ch>
To:        freebsd-questions@freebsd.org
Subject:   Re: Repopulating the GENERIC kernel
Message-ID:  <46802C41.1080308@gahr.ch>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8E3053F16B3ED674BE0D1FB1
Content-Type: multipart/mixed; boundary="------------020407000204030409080000"

This is a multi-part message in MIME format.
--------------020407000204030409080000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


Tim Daneliuk wrote:
> Pietro Cerutti wrote:
>> Tim Daneliuk wrote:
>>> I have a production 6.2 STABLE machine w/something like this in /etc/=
make.conf:
>>>
>>> KERNCONF=3DMYKERN SMP GENERIC
>>>
>>> When I do a 'make kernel', as I understand it, all three kernels get =
*build* but only
>>> MYKERN actually gets installed.
>>>
>>> So ... how do I get the latest version of GENERIC (that I just compil=
ed per the above)
>>> "installed" into /boot *without* it actually being the active kernel.=
  IOW, I want
>>> my kernel build to *install* MYKERN as the active kernel and refresh =
GENERIC just in
>>> case I need it to recover a failed boot...
>> try with
>>
>> make buildkernel
>> make installkernel KERNCONF=3DGENERIC INSTKERNNAME=3DGENERIC
>> make installkernel KERNCONF=3DSMP INSTKERNNAME=3DSMP
>> make installkernel KERNCONF=3DMYKERN INSTKERNNAME=3DMYKERN
>>
>> then set the name of the kernel that you want to boot off in
>> /boot/loader.conf, as
>>
>> kernel=3DMYKERN
>>
>> I don't know if there's an automatized way to perform the same...
>=20
> Well ... I guess I could avoid the last step with:
>=20
> make installkernel KERNCONF=3DMYKERN INSTKERNNAME=3Dkernel
>=20
> ... since I believe the bootloader defaults to looking for a kernel cal=
led, um, "kernel" :)

Not only, you can avoid INSTKERNNAME=3Dkernel if what you want is a kerne=
l
called "kernel".
the kernel defaults to "kernel" as for in /boot/defaults/loader.conf

>=20
>> Hope this helps,
>>
>=20
> Yes - it helps greatly.  Thanks!

Regards,

--=20
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp

--------------020407000204030409080000
Content-Type: application/pgp-signature;
 name="signature.asc"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="signature.asc"

LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChG
cmVlQlNEKQoKaUQ4REJRRkdnQnZrd01KcW1KVng5NDRSQ21ub0FKNHluNjJ0ZG1Ob2N1NE9U
amQ3N3RtWEFKL01Ld0NneWQxcQpNSWttQVcrNkpUN2U4UCsvSFB3MGJhMD0KPWw5blcKLS0t
LS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgo=
--------------020407000204030409080000--

--------------enig8E3053F16B3ED674BE0D1FB1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGgCxFwMJqmJVx944RCgxDAKC3NR3OXYXTq4svetFfbc1F2zM+OACg4pFJ
q2gvNUnjagrAl3wOsW7ZhRM=
=Stx8
-----END PGP SIGNATURE-----

--------------enig8E3053F16B3ED674BE0D1FB1--



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