rpmbuild force to use cpio.gz on RHEL 5.3
Hi,
I have RHEL 5.3. I am trying to build a e1000 network card driver rpm with particular requirement to have cpio.gz inside rpm. But after i build my rpm driver it has cpio.lzma inside. I simply build using command from the readme: rpmbuild -tb *.tar.gz. I have googled and found that from around 5.0 RHEL includes lzma and uses it as a default setting. Is there any way to force to use cpio.gz or somehow repackage my rpm correctly? I have searched through makefile and other files but was not able to find a clue. Thank you, Andrey |
Quote:
|
Quote:
The way i originally discovered this is I extracted the rpm using 7-zip on Windows after building it. I guess it's not best way to check, but still when I extract rpm's from RHEL media with same 7-zip they come up as cpio.gz, however when I extract this particular rpm it shows up as cpio.lzma. So rpm I built is still seems to be different in some way from the normal ones which come on media... |
Quote:
Quote:
|
Quote:
http://downloadcenter.intel.com/Deta...15817&lang=eng trying to slipstream into esx installer... thank you again! |
Here is the end of me doing 'rpmbuild -tb e1000e-1.2.10.tar.gz':
Code:
Provides: e1000e Code:
Features supported by rpmlib: Code:
rpmlib(PayloadIsLzma) = 4.4.2-1 |
thank you, see exactly same on my box.
i think I found what the issue actually is, when I do rpm2cpio *.rmp | cpio -imv on the driver file which comes with the media i'm trying to slipstream, i get different folder structure and different types of files... i get: 1 mf file (simply cp file to right place) 1 xml file (with details of the driver, vendor ID's and names) and 1 o file which i guess is actual driver file... so as I understand I will have to create exact folder/file structure for my driver, specfile, then get it into tar.gz and do rpmbuild again :) p.s. maybe there is some very simple way to create rpm of 3 files? |
Quote:
Quote:
|
Quote:
rpm -qpl vmware-esx-drivers-net-igb-400.1.3.19.12-1.0.4.164009.x86_64.rpm /etc/vmware/init/manifests/vmware-igb.mf /etc/vmware/pciid/igb.xml /usr/lib/vmware/vmkmod/igb.o I also downloaded another ISO package from the website for another NIC, looks exactly same, rpm -qpl vmware-esx-drivers-net-ixgbe-400.2.0.62.4.8-1.0.4.164009.x86_64 /etc/vmware/init/manifests/vmware-ixgbe.mf /etc/vmware/pciid/ixgbe.xml /usr/lib/vmware/vmkmod/ixgbe.o but I found there is a source folder with makefile and xml file can be downloaded from here: http://downloads.vmware.com/d/detail...RqKipiZHdlZQ== So if I will create the xml file then modify makefile from the driver I want to build to the makefile contained on CD i might have some luck? |
If you read in the ISO the /vmware-esx-drivers-net-ixgbe_400.2.0.62.4.8-1.0.4.164009.265875.iso/ISO9660/doc/README it explains how to add drivers to ESX?
|
Quote:
VMware made it this way, so people don't install ESX on non supported hardware (NIC is one of primary requirements). Unfortunately even though I did order a supported hardware I received something very different with no choice of swap, so have to make it to work or throw it away...:) but you set me on right track, so hopefully will figure it out.... |
Quote:
|
All times are GMT -5. The time now is 07:37 AM. |