Hi,
I am trying to make a custom CentOS distro with some of my additional 3rd party RPMS added in it. I need to do the following: 1) To Install basic CentOS 5.2 2) To install my 3rd party RPMs along with CentOS installation 3) Some other changes, like changing some text strings in the installation process
For these tasks I am using buildinstall tool that comes in the anaconda-runtime-11.1.2.113-1.el5.centos.2.i386.rpm.
Before running this tool I am making a 'package order file' using the /usr/lib/anaconda-runtime/pkgorder tool and then using that package order file in the buildinstall tool (with the "--pkgorder" switch)
I am able to make the iso file of the customized CentOS with my RPMS. After burning this iso on a CD I am able to install CentOS as well.
But, the problem lies in the order in which the packages get installed. There is a 3rd party RPM which needs the kernel source to get installed, but the kernel's rpm get installed after the 3rd party RPM. Due to which the installation of my 3rd party RPM fails!
This problem comes due to the order in which the packages get installed.
A strange that i noticed is when I see the package order file, the kernel package is written in the beginning of it . But, when I see the installation progress screen in the installation process, the kernel package gets installed way later after around 83% completion of the installation.
But, my 3rd party RPM tries to get installed before this and throws an error because it could not find the kernel source till then. However, the installation completes and after rebooting I can see the error in the install.log file.
I am not able to figure out how to change the packages installation order so that kernel rpm could install before my rpm.
I would really appreciate any help on this matter. I am stuck on this 'last' step of completion of my project and need help badly!
Thanks, Richard
Hello Richard,
Richard J wrote:
But, the problem lies in the order in which the packages get installed. There is a 3rd party RPM which needs the kernel source to get installed, but the kernel's rpm get installed after the 3rd party RPM. Due to which the installation of my 3rd party RPM fails!
...
I am not able to figure out how to change the packages installation order so that kernel rpm could install before my rpm.
The .spec of your 3rd-party RPM should probably use PreReq instead of Requires for the kernel sources.
Hope that helps, Niels
Hi Niels, Thanks a lot for such a prompt response. Actually, I am new to this stuff so I need to clarify this a bit more. Are you saying that if 'PreReq' is used instead of 'Requires' in .spec then the kernel rpm would install before my RPM??
Thanks again, Richard
On 10/22/08, Niels de Vos niels.devos@wincor-nixdorf.com wrote:
Hello Richard,
Richard J wrote:
But, the problem lies in the order in which the packages get installed. There is a 3rd party RPM which needs the kernel source to get installed, but the kernel's rpm get installed after the 3rd party RPM. Due to which the installation of my 3rd party RPM fails!
...
I am not able to figure out how to change the packages installation order so that kernel rpm could install before my rpm.
The .spec of your 3rd-party RPM should probably use PreReq instead of Requires for the kernel sources.
Hope that helps, Niels
Richard J wrote:
Hi Niels, Thanks a lot for such a prompt response. Actually, I am new to this stuff so I need to clarify this a bit more. Are you saying that if 'PreReq' is used instead of 'Requires' in .spec then the kernel rpm would install before my RPM??
Yes.
From http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-advanced-packaging.html:
10.1.2. Setting prerequisites
A prerequisite is similar to a require dependency, except that a prerequisite must be installed prior to a given package. Specify a prerequisite as follows:
PreReq: capability
You can include version-number dependencies, such as:
PreReq: capability >= version
In most usage, a PreReq: acts just like Requires:, in fact, the PreReq: directive exists just to allow for a manual order to dependencies. RPM guarantees that the PreReq: package will be installed prior to the package that names the PreReq: dependency.
Thanks again, Richard
On 10/22/08, Niels de Vos niels.devos@wincor-nixdorf.com wrote:
Hello Richard,
Richard J wrote:
But, the problem lies in the order in which the packages get installed. There is a 3rd party RPM which needs the kernel source to get installed, but the kernel's rpm get installed after the 3rd party RPM. Due to which the installation of my 3rd party RPM fails!
...
I am not able to figure out how to change the packages installation order so that kernel rpm could install before my rpm.
The .spec of your 3rd-party RPM should probably use PreReq instead of Requires for the kernel sources.
Hope that helps, Niels
CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
Hi, Thanks a lot for your help. I finally solved the problem I was facing and now I completed the project. Thanks Again! Keep up the great work :-)
Richard
On Wed, Oct 22, 2008 at 2:17 PM, Niels de Vos < niels.devos@wincor-nixdorf.com> wrote:
Richard J wrote:
Hi Niels, Thanks a lot for such a prompt response. Actually, I am new to this stuff so I need to clarify this a bit more. Are you saying that if 'PreReq' is used instead of 'Requires' in .spec then the kernel rpm would install before my RPM??
Yes.
From http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-advanced-packaging.html :
10.1.2. Setting prerequisites
A prerequisite is similar to a require dependency, except that a prerequisite must be installed prior to a given package. Specify a prerequisite as follows:
PreReq: capability
You can include version-number dependencies, such as:
PreReq: capability >= version
In most usage, a PreReq: acts just like Requires:, in fact, the PreReq: directive exists just to allow for a manual order to dependencies. RPM guarantees that the PreReq: package will be installed prior to the package that names the PreReq: dependency.
Thanks again, Richard
On 10/22/08, Niels de Vos niels.devos@wincor-nixdorf.com wrote:
Hello Richard,
Richard J wrote:
But, the problem lies in the order in which the packages get installed. There is a 3rd party RPM which needs the kernel source to get installed, but the kernel's rpm get installed after the 3rd party RPM. Due to which the installation of my 3rd party RPM fails!
...
I am not able to figure out how to change the packages installation order so that kernel rpm could install before my rpm.
The .spec of your 3rd-party RPM should probably use PreReq instead of Requires for the kernel sources.
Hope that helps, Niels
CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
Hi,
I am trying to make a custom CentOS distro with some of my additional 3rd party RPMS added in it. I need to do the following: 1) To Install basic CentOS 5.2 2) To install my 3rd party RPMs along with CentOS installation 3) Some other changes, like changing some text strings in the installation process
For these tasks I am using buildinstall tool that comes in the anaconda-runtime-11.1.2.113-1.el5.centos.2.i386.rpm.
Before running this tool I am making a 'package order file' using the /usr/lib/anaconda-runtime/pkgorder tool and then using that package order file in the buildinstall tool (with the "--pkgorder" switch)
I am able to make the iso file of the customized CentOS with my RPMS. After burning this iso on a CD I am able to install CentOS as well.
But, the problem lies in the order in which the packages get installed. There is a 3rd party RPM which needs the kernel source to get installed, but the kernel's rpm get installed after the 3rd party RPM. Due to which the installation of my 3rd party RPM fails!
This problem comes due to the order in which the packages get installed.
A strange that i noticed is when I see the package order file, the kernel package is written in the beginning of it . But, when I see the installation progress screen in the installation process, the kernel package gets installed way later after around 83% completion of the installation.
But, my 3rd party RPM tries to get installed before this and throws an error because it could not find the kernel source till then. However, the installation completes and after rebooting I can see the error in the install.log file.
I am not able to figure out how to change the packages installation order so that kernel rpm could install before my rpm.
I would really appreciate any help on this matter. I am stuck on this 'last' step of completion of my project and need help badly!
Thanks, Richard
Richard J wrote:
Hi,
<big snip>
Thanks, Richard _______________________________________________
And why do you send the same mail twice to the list ? My bet is that the only valid answer you'll get from centos-devel list is to use kickstart instead of trying a rebuild of CentOS ...