opensuse kernel 2.6.22-5 make rpm - Suse

This is a discussion on opensuse kernel 2.6.22-5 make rpm - Suse ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: opensuse kernel 2.6.22-5 make rpm

  1. 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

  2. Re: opensuse kernel 2.6.22-5 make rpm

    Chris wrote:

    > 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,
    >


    It is a bug in 2.6.22-5
    https://bugzilla.novell.com/show_bug.cgi?id=308970

    I got to see where they hide the postinstall script.

    --
    Regards,
    Rajko.

  3. Re: opensuse kernel 2.6.22-5 make rpm

    Rajko M. wrote:

    > Chris wrote:
    >
    >> 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,
    >>

    >
    > It is a bug in 2.6.22-5
    > https://bugzilla.novell.com/show_bug.cgi?id=308970
    >
    > I got to see where they hide the postinstall script.
    >


    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

  4. Re: opensuse kernel 2.6.22-5 make rpm

    Chris wrote:

    > The changelog in the latest 2.6.22-5 rpm mentions something about this
    > bug.
    >


    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)

    > 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.


    If you know what to cut out, than you are good.

    --
    Regards,
    Rajko.

+ Reply to Thread