# Fail to install with a rebuilt kernel

**URL:** <https://forums.suse.com/t/fail-to-install-with-a-rebuilt-kernel/30166>\
**Category:** SLES Install-Boot\
**Created:** [August 14, 2017, 8:05am UTC](https://forums.suse.com/t/fail-to-install-with-a-rebuilt-kernel/30166 "2017-08-14T08:05:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naruto\_uzu](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@naruto\_uzu](https://forums.suse.com/u/naruto_uzu)\
**Post date:** [August 14, 2017, 8:05am UTC](https://forums.suse.com/t/fail-to-install-with-a-rebuilt-kernel/30166/1 "2017-08-14T08:05:26Z")

</div>

Hello everyone,

I have pulled SLES 12 rpms package including kernel + other rpms like drbd, nfs… and add more services, then using kiwi to rebuild the initrd. Everything is ok and I can boot kernel with my customize initrd.

Currently I need to modify the already built kernel (vmlinuz) to enable CONFIG\_XFRM\_STATISTICS and rebuild kernel. My steps are as the following:

- Unpack kernel-source rpm
- Unpack config “tar jxf config.tar.bz2”
- Enable CONFIG\_XFRM\_STATISTICS to y
- Pack config again “tar jcf config.tar.bz2 config”
- Then do “rpmbuild -ba kernel-default.spec” to rebuild the kernel default rpm
- Do “rpmbuild -ba kernel-syms.spec” to rebuilf kernel syms

Then I replace the origin kernel-default and kernel-syms with my built ones, then I build my initrd using kiwi but it fails with the error:  
  
“nothing provides ksym(default:\_\_alloc\_skb) = 4e7db4d4 needed by drbd-kmp-default”

and I cannot built my initrd anymore. I’ve already checked the System.map of my built kernel and see the function \_\_allloc\_skb built. Could you let me the meaning of this error and how I can resolve this problem?

Thanks a lot,  
Brs,  
Bao

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 15, 2017, 4:04pm UTC](https://forums.suse.com/t/fail-to-install-with-a-rebuilt-kernel/30166/2 "2017-08-15T16:04:14Z")

</div>

[QUOTE=naruto\_uzu;39096]Hello everyone,

I have pulled SLES 12 rpms package including kernel + other rpms like drbd, nfs… and add more services, then using kiwi to rebuild the initrd. Everything is ok and I can boot kernel with my customize initrd.

Currently I need to modify the already built kernel (vmlinuz) to enable CONFIG\_XFRM\_STATISTICS and rebuild kernel. My steps are as the following:

- Unpack kernel-source rpm
- Unpack config “tar jxf config.tar.bz2”
- Enable CONFIG\_XFRM\_STATISTICS to y
- Pack config again “tar jcf config.tar.bz2 config”
- Then do “rpmbuild -ba kernel-default.spec” to rebuild the kernel default rpm
- Do “rpmbuild -ba kernel-syms.spec” to rebuilf kernel syms

Then I replace the origin kernel-default and kernel-syms with my built ones, then I build my initrd using kiwi but it fails with the error:  
  
“nothing provides ksym(default:\_\_alloc\_skb) = 4e7db4d4 needed by drbd-kmp-default”

and I cannot built my initrd anymore. I’ve already checked the System.map of my built kernel and see the function \_\_allloc\_skb built. Could you let me the meaning of this error and how I can resolve this problem?

Thanks a lot,  
Brs,  
Bao[/QUOTE]  
Hi  
Sounds like you need to build the kernel and syms etc, then build the drbd kmp against that kernel, I’m guessing the kmp built against the running kernel…

---

<div class="post-metadata">

**Author:** ![naruto\_uzu](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@naruto\_uzu](https://forums.suse.com/u/naruto_uzu)\
**Post date:** [August 16, 2017, 5:28am UTC](https://forums.suse.com/t/fail-to-install-with-a-rebuilt-kernel/30166/3 "2017-08-16T05:28:42Z")

</div>

[QUOTE=malcolmlewis;39113]Hi  
Sounds like you need to build the kernel and syms etc, then build the drbd kmp against that kernel, I’m guessing the kmp built against the running kernel…[/QUOTE]

Hi,

Thanks for your answer. I have another question regard to change configure and rebuild kernel. If the new kernel has been configured or modified in such a way that it is at variance with the published ABI, the build will fail with a message indicating that kABI breakage has occurred. The kernel builder will then have two choices: (a) re-configure the new kernel so that it does agree with the published ABI and, hence, continue to enjoy the benefits that a consistent ABI provides or (b) disable kABI checking during the build process.

I do not want to disable kABI checking but would like to use option a). Could you let me know how to do it? Is there anyway to keep kAPI unchanged?

Brs,  
Bao

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [August 16, 2017, 7:24am UTC](https://forums.suse.com/t/fail-to-install-with-a-rebuilt-kernel/30166/4 "2017-08-16T07:24:36Z")

</div>

> [@](#):
>
> On Wed 16 Aug 2017 02:34:02 AM CDT, naruto uzu wrote:
> 
> malcolmlewis;39113 Wrote:[color=blue]
> 
> > Hi  
> > Sounds like you need to build the kernel and syms etc, then build the  
> > drbd kmp against that kernel, I’m guessing the kmp built against the  
> > running kernel…[/color]
> 
> Hi,
> 
> Thanks for your answer. I have another question regard to change  
> configure and rebuild kernel. If the new kernel has been configured or  
> modified in such a way that it is at variance with the published ABI,  
> the build will fail with a message indicating that kABI breakage has  
> occurred. The kernel builder will then have two choices: (a)  
> re-configure the new kernel so that it does agree with the published ABI  
> and, hence, continue to enjoy the benefits that a consistent ABI  
> provides or (b) disable kABI checking during the build process.
> 
> I do not want to disable kABI checking but would like to use option a).  
> Could you let me know how to do it? Is there anyway to keep kAPI  
> unchanged?
> 
> Brs,  
> Bao

Hi  
How are you building your packages, locally, local build instance (aka  
OBS) or on OBS itself?

I’m no kernel guri… 😉 I use the OBS ([https://build.opensuse.org/](https://build.opensuse.org/)) for  
all my builds mainly kmp’s against current kernels, or locally with the  
src rpm against the running kernel.

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE Leap 42.2|GNOME 3.20.2|4.4.74-18.20-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
