opensuse kernel 2.6.22-5 make rpm
Hello,
I have a pretty slim .config file for openSUSE's 2.6.22-5 kernels. I have
been compiling and install the kernels from openSUSE's kernel-source rpms.
Now I would like to make my own kernel rpm. I have copied my .config file
to /usr/src/linux. I then issued the command "make rpm".
The RPM was built successfully and I was able to install it. However, unlike
the office kernel-default rpm, I noticed that the custom built RPM does not
run "mkinitrd" and does not update grub.
AFAIK, mkinitrd and updating grub should occur in the %post section (and
corresponding %postun section). I would just alter the kernel.spec file,
but that is autogenerated by the "make rpm" command.
Anyone know what I can do, so that "make rpm" generates openSUSE's .spec
file rather than the generic one? What do the openSUSE kernel maintainers
do in this case?
Thanks,
--
Chris
Re: opensuse kernel 2.6.22-5 make rpm
Chris wrote:
[color=blue]
> Hello,
>
> I have a pretty slim .config file for openSUSE's 2.6.22-5 kernels. I have
> been compiling and install the kernels from openSUSE's kernel-source rpms.
>
> Now I would like to make my own kernel rpm. I have copied my .config file
> to /usr/src/linux. I then issued the command "make rpm".
>
> The RPM was built successfully and I was able to install it. However,
> unlike the office kernel-default rpm, I noticed that the custom built RPM
> does not run "mkinitrd" and does not update grub.
>
> AFAIK, mkinitrd and updating grub should occur in the %post section (and
> corresponding %postun section). I would just alter the kernel.spec file,
> but that is autogenerated by the "make rpm" command.
>
> Anyone know what I can do, so that "make rpm" generates openSUSE's .spec
> file rather than the generic one? What do the openSUSE kernel maintainers
> do in this case?
>
> Thanks,
>[/color]
It is a bug in 2.6.22-5
[url]https://bugzilla.novell.com/show_bug.cgi?id=308970[/url]
I got to see where they hide the postinstall script.
--
Regards,
Rajko.
Re: opensuse kernel 2.6.22-5 make rpm
Rajko M. wrote:
[color=blue]
> Chris wrote:
>[color=green]
>> Hello,
>>
>> I have a pretty slim .config file for openSUSE's 2.6.22-5 kernels. I have
>> been compiling and install the kernels from openSUSE's kernel-source
>> rpms.
>>
>> Now I would like to make my own kernel rpm. I have copied my .config file
>> to /usr/src/linux. I then issued the command "make rpm".
>>
>> The RPM was built successfully and I was able to install it. However,
>> unlike the office kernel-default rpm, I noticed that the custom built RPM
>> does not run "mkinitrd" and does not update grub.
>>
>> AFAIK, mkinitrd and updating grub should occur in the %post section (and
>> corresponding %postun section). I would just alter the kernel.spec file,
>> but that is autogenerated by the "make rpm" command.
>>
>> Anyone know what I can do, so that "make rpm" generates openSUSE's .spec
>> file rather than the generic one? What do the openSUSE kernel maintainers
>> do in this case?
>>
>> Thanks,
>>[/color]
>
> It is a bug in 2.6.22-5
> [url]https://bugzilla.novell.com/show_bug.cgi?id=308970[/url]
>
> I got to see where they hide the postinstall script.
>[/color]
The changelog in the latest 2.6.22-5 rpm mentions something about this bug.
I think I'm just going to rip the .spec file from the kernel-source source
RPM and hack it to my liking. My kernel is compiled for the Pentium4 chips,
so I believe I can safely cut out all the ia64, ppc, etc support.
Thanks for the link.
--
Chris
Re: opensuse kernel 2.6.22-5 make rpm
Chris wrote:
[color=blue]
> The changelog in the latest 2.6.22-5 rpm mentions something about this
> bug.
>[/color]
The bug was solved today.
If you see this, than postinstall script is OK.
- rpm/post.sh: run mkinitrd also of bootloader configuration files
are not present (308970)
[color=blue]
> I think I'm just going to rip the .spec file from the kernel-source source
> RPM and hack it to my liking. My kernel is compiled for the Pentium4
> chips, so I believe I can safely cut out all the ia64, ppc, etc support.[/color]
If you know what to cut out, than you are good.
--
Regards,
Rajko.