Hello List,
I found these wonderful instruction by Alan Bartlett (thanks Alan) for building a kernel.org kernel that would install on CentOS 5.5. Doing this and moving the resulting .rpm to the target system and doing a rpm -ivh ... works great.
Now I am trying to use the same rpm as part of a CentOS respin and the installation fails miserably leaving me with a unbootable system.
Using the rescue option I see the following in my install log.
Installing kernel-2.6.32.23-1.i386 /var/tmp/rpm-tmp.24949: line 1: uname: command not found /var/tmp/rpm-tmp.24949: line 1: uname: command not found /var/tmp/rpm-tmp.24949: line 1: [: too many arguments /var/tmp/rpm-tmp.24949: line 6: /sbin/new-kernel-pkg: No such file or directory error: %post(kernel-2.6.32.23-1.i386) scriptlet failed, exit status 127
Does someone have instructions for building a kernel.org kernel that will install like the standard CentOS kernels?
Thanks,
From: Steve Clark sclark@netwolves.com
I found these wonderful instruction by Alan Bartlett (thanks Alan) for building
a kernel.org kernel that would install on CentOS 5.5. Doing this and moving the resulting .rpm to the target system and doing a rpm -ivh ... works great. Now I am trying to use the same rpm as part of a CentOS respin and the installation fails miserably leaving me with a unbootable system. Using the rescue option I see the following in my install log. Installing kernel-2.6.32.23-1.i386 /var/tmp/rpm-tmp.24949: line 1: uname: command not found /var/tmp/rpm-tmp.24949: line 1: uname: command not found /var/tmp/rpm-tmp.24949: line 1: [: too many arguments /var/tmp/rpm-tmp.24949: line 6: /sbin/new-kernel-pkg: No such file or directory error: %post(kernel-2.6.32.23-1.i386) scriptlet failed, exit status 127 Does someone have instructions for building a kernel.org kernel that will install like the standard CentOS kernels?
The error messages don't seem to be "kernel related errors"... the script needs uname but cannot find it...
JD
On 10/05/2010 05:30 AM, John Doe wrote:
From: Steve Clarksclark@netwolves.com
I found these wonderful instruction by Alan Bartlett (thanks Alan) for building
a kernel.org kernel that would install on CentOS 5.5. Doing this and moving the resulting .rpm to the target system and doing a rpm -ivh ... works great. Now I am trying to use the same rpm as part of a CentOS respin and the installation fails miserably leaving me with a unbootable system. Using the rescue option I see the following in my install log. Installing kernel-2.6.32.23-1.i386 /var/tmp/rpm-tmp.24949: line 1: uname: command not found /var/tmp/rpm-tmp.24949: line 1: uname: command not found /var/tmp/rpm-tmp.24949: line 1: [: too many arguments /var/tmp/rpm-tmp.24949: line 6: /sbin/new-kernel-pkg: No such file or directory error: %post(kernel-2.6.32.23-1.i386) scriptlet failed, exit status 127 Does someone have instructions for building a kernel.org kernel that will install like the standard CentOS kernels?
The error messages don't seem to be "kernel related errors"... the script needs uname but cannot find it...
JD
Thanks,
I realize that uname is missing as well as /sbin/new-kernel-pkg. That is why I was asking if someone has a "recipe" for building a kernel from "kernel.org" that will install correctly from a respin.
From: Steve Clark sclark@netwolves.com
I realize that uname is missing as well as /sbin/new-kernel-pkg. That is why I was asking if someone has a "recipe" for building a kernel from "kernel.org" that will install correctly from a respin.
You need mkinitrd and coreutils packages... Not sure at which step it fails since you did not give details. Anyway, google says: http://wiki.centos.org/HowTos/Custom_Kernel Hope this helps...
JD
On 10/06/2010 06:05 AM, John Doe wrote:
From: Steve Clarksclark@netwolves.com
I realize that uname is missing as well as /sbin/new-kernel-pkg. That is why I was asking if someone has a "recipe" for building a kernel from "kernel.org" that will install correctly from a respin.
You need mkinitrd and coreutils packages... Not sure at which step it fails since you did not give details. Anyway, google says: http://wiki.centos.org/HowTos/Custom_Kernel Hope this helps...
JD
Thanks JD,
I have looked at that page. It was my impression it was for building a kernel based on the released CentOS kernel for 5.x, 2.6.18... not for building a kernel from kernel.org such as 2.6.32-23 which is what I want.