Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17790

rpmbuild multiple kernels

$
0
0

My infrastructure is all RHEL5/6. I know for at least RHEL5 I would need to build on a RHEL5 server and likewise for RHEL6 on RHEL6. One specific problem I am having right now is that I am trying to build keepalived but it is very specific on matching kernels for the netfilter source inside the kernel. As an example, I have built it on RHEL6 kernel 2.6.32-504.1.3.el6.x86_64 but the destination is 2.6.32-431.29.2.el6.x86_64. When I install the RPM and keepalived comes up nothing happens - no broadcast gratuitoious arps or even trying to bring up the virtual IP. When I compile it directly on the 431.29.2 box it runs just fine

That being said I think my only option is to support multiple kernel versions for some applications like keepalived. Does anyone know how to do this? I dont think I can use docker for this since I need to be booted to separate kernels. I used docker for building a RHEL5 RPM (running a CentOS RHEL5 Docker Image) but that wont work here.

Ideas?

submitted by ckozler
[link][3 comments]

Viewing all articles
Browse latest Browse all 17790