Re: Automatic download of kernel rpms

From: Ian Soboroff
Date: Wed Nov 09 2005 - 08:34:56 EST


"linux-os \(Dick Johnson\)" <linux-os@xxxxxxxxxxxx> writes:

> On Tue, 8 Nov 2005, Alan Cox wrote:
>
>> On Maw, 2005-11-08 at 08:33 -0500, Gene Heskett wrote:
>>> Generally, no. The exact reason is that rpms are a vendor item, and no
>>> fixed relation to the kernel.org tarballs.
>>
>> "make rpm" should build an RPM package from them but you will still need
>> to get the configuration correct before doing this.
>>
>
> Alan can verify that Red Hat Fedora puts the ".config" file in
> /boot as /boot/config-`uname -r`. This can be copied to the
> new kernel tree as ".config" and `make oldconfig` should get
> you a kernel configured very close to the one provided with
> the distribution.

Note that Fedora (and RHEL) kernels modularize nearly everything and
need an initrd to boot. The kernel's "make rpm" does not make the
initrd for you (or fix up your grub.conf, IIRC). So, the sequence is:

(unpack kernel)
cp /boot/config-`uname -r` .config
make oldconfig
(answer questions about new stuff)
make rpm
rpm -ivh <the-new-rpm>
mkinitrd /boot/initrd-<ver> <ver>
(edit grub.conf or what have you)

Ian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/