2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-24 02:19:53 +00:00

Add bits needed to transform stock rpms to nbz images

This commit is contained in:
jbjohnso 2008-01-17 16:18:10 +00:00
parent 91cca0f1f8
commit d4a2a0c67c
3 changed files with 313 additions and 0 deletions

View File

@ -0,0 +1,103 @@
kernel/arch/powerpc/platforms/cell/spufs/spufs.ko
kernel/arch/powerpc/platforms/pseries/hvcserver.ko
kernel/net/sunrpc/sunrpc.ko
kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
kernel/net/sunrpc/auth_gss/rpcsec_gss_spkm3.ko
kernel/net/ipv6/ipv6.ko
kernel/lib/zlib_deflate/zlib_deflate.ko
kernel/lib/ts_fsm.ko
kernel/lib/ts_kmp.ko
kernel/lib/ts_bm.ko
kernel/lib/crc16.ko
kernel/lib/crc-ccitt.ko
kernel/fs/squashfs/squashfs.ko
kernel/fs/ext3/ext3.ko
kernel/fs/nfsd/nfsd.ko
kernel/fs/exportfs/exportfs.ko
kernel/fs/fscache/fscache.ko
kernel/fs/nfs_common/nfs_acl.ko
kernel/fs/lockd/lockd.ko
kernel/fs/cachefiles/cachefiles.ko
kernel/fs/vfat/vfat.ko
kernel/fs/nfs/nfs.ko
kernel/fs/jbd/jbd.ko
kernel/fs/udf/udf.ko
kernel/fs/cifs/cifs.ko
kernel/fs/configfs/configfs.ko
kernel/crypto/md5.ko
kernel/crypto/aes.ko
kernel/crypto/sha256.ko
kernel/crypto/des.ko
kernel/crypto/deflate.ko
kernel/crypto/sha512.ko
kernel/drivers/ata/libata.ko
kernel/drivers/md/raid1.ko
kernel/drivers/md/xor.ko
kernel/drivers/md/faulty.ko
kernel/drivers/md/dm-snapshot.ko
kernel/drivers/md/raid456.ko
kernel/drivers/md/dm-mod.ko
kernel/drivers/md/dm-multipath.ko
kernel/drivers/md/linear.ko
kernel/drivers/md/raid10.ko
kernel/drivers/md/dm-crypt.ko
kernel/drivers/md/multipath.ko
kernel/drivers/md/dm-emc.ko
kernel/drivers/md/dm-mirror.ko
kernel/drivers/md/raid0.ko
kernel/drivers/md/dm-zero.ko
kernel/drivers/md/dm-round-robin.ko
kernel/drivers/md/dm-rdac.ko
kernel/drivers/cdrom/cdrom.ko
kernel/drivers/ide/ide-cd.ko
kernel/drivers/block/floppy.ko
kernel/drivers/block/nbd.ko
kernel/drivers/block/cryptoloop.ko
kernel/drivers/block/loop.ko
kernel/drivers/block/pktcdvd.ko
kernel/drivers/net/netxen/netxen_nic.ko
kernel/drivers/net/ehea/ehea.ko
kernel/drivers/net/netconsole.ko
kernel/drivers/net/mii.ko
kernel/drivers/net/e1000/e1000.ko
kernel/drivers/net/myri10ge/myri10ge.ko
kernel/drivers/net/ifb.ko
kernel/drivers/net/e1000e/e1000e.ko
kernel/drivers/net/igb/igb.ko
kernel/drivers/net/bnx2.ko
kernel/drivers/net/tg3.ko
kernel/drivers/net/ibmveth.ko
kernel/drivers/net/spidernet.ko
kernel/drivers/message/fusion/mptsas.ko
kernel/drivers/message/fusion/mptfc.ko
kernel/drivers/message/fusion/mptctl.ko
kernel/drivers/message/fusion/mptscsih.ko
kernel/drivers/message/fusion/mptspi.ko
kernel/drivers/message/fusion/mptbase.ko
kernel/drivers/scsi/ibmvscsi/ibmvscsic.ko
kernel/drivers/scsi/ch.ko
kernel/drivers/scsi/libiscsi.ko
kernel/drivers/scsi/scsi_transport_iscsi.ko
kernel/drivers/scsi/qla2xxx/qla2xxx.ko
kernel/drivers/scsi/scsi_mod.ko
kernel/drivers/scsi/ipr.ko
kernel/drivers/scsi/imm.ko
kernel/drivers/scsi/scsi_transport_sas.ko
kernel/drivers/scsi/sr_mod.ko
kernel/drivers/scsi/ide-scsi.ko
kernel/drivers/scsi/scsi_transport_fc.ko
kernel/drivers/scsi/raid_class.ko
kernel/drivers/scsi/stex.ko
kernel/drivers/scsi/libsas/libsas.ko
kernel/drivers/scsi/lpfc/lpfc.ko
kernel/drivers/scsi/sd_mod.ko
kernel/drivers/scsi/iscsi_tcp.ko
kernel/drivers/scsi/sg.ko
kernel/drivers/scsi/scsi_transport_spi.ko
kernel/drivers/usb/host/ehci-hcd.ko
kernel/drivers/usb/host/ohci-hcd.ko
kernel/drivers/usb/storage/usb-storage.ko
kernel/drivers/cpufreq/cpufreq_ondemand.ko
kernel/drivers/cpufreq/cpufreq_powersave.ko
kernel/drivers/cpufreq/cpufreq_stats.ko

View File

@ -0,0 +1,136 @@
kernel/arch/x86_64/kernel/microcode.ko
kernel/arch/x86_64/kernel/cpufreq/acpi-cpufreq.ko
kernel/arch/x86_64/crypto/aes-x86_64.ko
kernel/arch/x86_64/oprofile/oprofile.ko
kernel/net/sunrpc/sunrpc.ko
kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
kernel/net/sunrpc/auth_gss/rpcsec_gss_spkm3.ko
kernel/net/ipv6/ipv6.ko
kernel/lib/zlib_deflate/zlib_deflate.ko
kernel/lib/ts_fsm.ko
kernel/lib/ts_kmp.ko
kernel/lib/ts_bm.ko
kernel/lib/crc16.ko
kernel/lib/crc-ccitt.ko
kernel/lib/reed_solomon/reed_solomon.ko
kernel/fs/squashfs/squashfs.ko
kernel/fs/ext3/ext3.ko
kernel/fs/nfsd/nfsd.ko
kernel/fs/exportfs/exportfs.ko
kernel/fs/fscache/fscache.ko
kernel/fs/nfs_common/nfs_acl.ko
kernel/fs/lockd/lockd.ko
kernel/fs/cachefiles/cachefiles.ko
kernel/fs/vfat/vfat.ko
kernel/fs/nfs/nfs.ko
kernel/fs/jbd/jbd.ko
kernel/fs/udf/udf.ko
kernel/fs/cifs/cifs.ko
kernel/fs/configfs/configfs.ko
kernel/crypto/md5.ko
kernel/crypto/aes.ko
kernel/crypto/sha256.ko
kernel/crypto/des.ko
kernel/crypto/deflate.ko
kernel/crypto/sha512.ko
kernel/drivers/md/raid1.ko
kernel/drivers/md/xor.ko
kernel/drivers/md/faulty.ko
kernel/drivers/md/dm-snapshot.ko
kernel/drivers/md/raid456.ko
kernel/drivers/md/dm-mod.ko
kernel/drivers/md/dm-multipath.ko
kernel/drivers/md/linear.ko
kernel/drivers/md/raid10.ko
kernel/drivers/md/dm-crypt.ko
kernel/drivers/md/multipath.ko
kernel/drivers/md/dm-emc.ko
kernel/drivers/md/dm-mirror.ko
kernel/drivers/md/raid0.ko
kernel/drivers/md/dm-zero.ko
kernel/drivers/md/dm-round-robin.ko
kernel/drivers/cdrom/cdrom.ko
kernel/drivers/firmware/edd.ko
kernel/drivers/firmware/dcdbas.ko
kernel/drivers/ide/ide-cd.ko
kernel/drivers/char/ipmi/ipmi_si.ko
kernel/drivers/char/ipmi/ipmi_devintf.ko
kernel/drivers/char/ipmi/ipmi_watchdog.ko
kernel/drivers/char/ipmi/ipmi_msghandler.ko
kernel/drivers/char/ipmi/ipmi_poweroff.ko
kernel/drivers/block/nbd.ko
kernel/drivers/block/loop.ko
kernel/drivers/net/netconsole.ko
kernel/drivers/net/e100.ko
kernel/drivers/net/e1000/e1000.ko
kernel/drivers/net/myri10ge/myri10ge.ko
kernel/drivers/net/bnx2.ko
kernel/drivers/net/tg3.ko
kernel/drivers/edac/k8_edac.ko
kernel/drivers/edac/edac_mc.ko
kernel/drivers/edac/e752x_edac.ko
kernel/drivers/message/fusion/mptsas.ko
kernel/drivers/message/fusion/mptfc.ko
kernel/drivers/message/fusion/mptctl.ko
kernel/drivers/message/fusion/mptscsih.ko
kernel/drivers/message/fusion/mptspi.ko
kernel/drivers/message/fusion/mptbase.ko
kernel/drivers/scsi/sata_nv.ko
kernel/drivers/scsi/libiscsi.ko
kernel/drivers/scsi/sata_sis.ko
kernel/drivers/scsi/aic94xx/aic94xx.ko
kernel/drivers/scsi/scsi_transport_iscsi.ko
kernel/drivers/scsi/libata.ko
kernel/drivers/scsi/qla2xxx/qla2xxx.ko
kernel/drivers/scsi/scsi_mod.ko
kernel/drivers/scsi/aacraid/aacraid.ko
kernel/drivers/scsi/sata_vsc.ko
kernel/drivers/scsi/scsi_transport_sas.ko
kernel/drivers/scsi/sr_mod.ko
kernel/drivers/scsi/ips.ko
kernel/drivers/scsi/sata_uli.ko
kernel/drivers/scsi/scsi_transport_fc.ko
kernel/drivers/scsi/raid_class.ko
kernel/drivers/scsi/stex.ko
kernel/drivers/scsi/sata_promise.ko
kernel/drivers/scsi/libsas/libsas.ko
kernel/drivers/scsi/megaraid/megaraid_sas.ko
kernel/drivers/scsi/sata_sx4.ko
kernel/drivers/scsi/ahci.ko
kernel/drivers/scsi/lpfc/lpfc.ko
kernel/drivers/scsi/sata_via.ko
kernel/drivers/scsi/sd_mod.ko
kernel/drivers/scsi/iscsi_tcp.ko
kernel/drivers/scsi/ata_piix.ko
kernel/drivers/scsi/sg.ko
kernel/drivers/scsi/sata_sil24.ko
kernel/drivers/scsi/sata_sil.ko
kernel/drivers/scsi/sata_svw.ko
kernel/drivers/scsi/scsi_transport_spi.ko
kernel/drivers/rtc/rtc-core.ko
kernel/drivers/rtc/rtc-ds1672.ko
kernel/drivers/rtc/rtc-ds1742.ko
kernel/drivers/rtc/rtc-pcf8563.ko
kernel/drivers/rtc/rtc-pcf8583.ko
kernel/drivers/rtc/rtc-v3020.ko
kernel/drivers/rtc/rtc-rs5c372.ko
kernel/drivers/rtc/rtc-proc.ko
kernel/drivers/rtc/rtc-isl1208.ko
kernel/drivers/rtc/rtc-x1205.ko
kernel/drivers/rtc/rtc-ds1307.ko
kernel/drivers/rtc/rtc-ds1553.ko
kernel/drivers/rtc/rtc-sysfs.ko
kernel/drivers/rtc/rtc-lib.ko
kernel/drivers/rtc/rtc-dev.ko
kernel/drivers/usb/host/ehci-hcd.ko
kernel/drivers/usb/host/uhci-hcd.ko
kernel/drivers/usb/host/ohci-hcd.ko
kernel/drivers/usb/host/sl811-hcd.ko
kernel/drivers/usb/host/isp116x-hcd.ko
kernel/drivers/usb/host/sl811_cs.ko
kernel/drivers/usb/storage/usb-storage.ko
kernel/drivers/cpufreq/cpufreq_ondemand.ko
kernel/drivers/cpufreq/cpufreq_powersave.ko
kernel/drivers/cpufreq/cpufreq_stats.ko
kernel/drivers/acpi/button.ko

74
nbkernel/xcat-nbz.spec Normal file
View File

@ -0,0 +1,74 @@
%ifarch i386 i586 i686 x86
Source1: kernel-2.6.18-8.el5.i686.rpm
%define kver 2.6.18-8.el5
%define version 2.6.18_8
%define tarch x86
%endif
%ifarch x86_64
Source1: kernel-2.6.18-8.1.8.el5.x86_64.rpm
Source2: modlist-2.6.18-8.1.8.el5.x86_64
%define version 2.6.18_8.1.8
%define kver 2.6.18-8.1.8.el5
%define tarch x86_64
%endif
%ifarch ppc ppc64
Source1: kernel-2.6.18-53.el5.ppc64.rpm
Source2: modlist-2.6.18-53.el5.ppc64
%define kver 2.6.18-53.el5
%define tarch ppc64
%define version 2.6.18_53
%endif
BuildArch: noarch
%define name xCAT-nbkernel-%{tarch}
Release: snap%(date +"%Y%m%d%H%M")
AutoReq: false
AutoProv: false
Requires: xCAT-server xCAT-nbroot-oss-%{tarch} xCAT-nbroot-core-%{tarch}
Name: %{name}
Version: %{version}
Group: System/Utilities
License: GPL
Summary: xcat-nbroot-oss provides opensource components of the netboot image
URL: http://xcat.org
Buildroot: %{_localstatedir}/tmp/xcat-nbk
%Description
xcat-nbroot-oss is a particular packaging of buildroot from the uclibc.org site.
All files included are as they were downloadable on 4/7/2007
%Prep
rm -rf %{name}
mkdir -p %{name}/usr/share/xcat/netboot/%{tarch}/nbroot
cd %{name}
mkdir -p usr/share/xcat/netboot/%{tarch}/nbroot
cd usr/share/xcat/netboot/%{tarch}/nbroot
rpm2cpio %{SOURCE1} | cpio -ivdum
mkdir -p ../../../../../../tftpboot/xcat/
cp boot/vmlinuz* ../../../../../../tftpboot/xcat/nbk.%{tarch}
mv boot/* ../
rmdir boot
%Build
cd %{name}
cd usr/share/xcat/netboot/%{tarch}/nbroot/lib/modules/*
find kernel -type f -exec grep -q {} %{SOURCE2} \; -o -type f -a -exec rm {} \;
find kernel -type d -a -empty | xargs rmdir
find kernel -type d -a -empty | xargs rmdir
find kernel -type d -a -empty | xargs rmdir
cd -
cd usr/share/xcat/netboot/%{tarch}/nbroot
depmod -b . %{kver}
%Install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
cd %{name}
cp -a * $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
/