xcat-core/xCAT-nbroot2/buildrpm
jbjohnso 3345d3ad7c Package xCAT-genesis
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-09 18:20:18 +00:00

13 lines
575 B
Plaintext
Executable File

DIR=`dirname $0`
mkdir -p /usr/share/dracut/modules/97xcat
cp $DIR/* /usr/share/dracut/modules/97xcat
mkdir -p /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/`uname -m`/fs
dracut -m "xcat base" -f /tmp/xcatgenesis.$$.rfs
cd /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/`uname -m`/fs
zcat /tmp/xcatgenesis.$$.rfs|cpio -dumi
cp /boot/vmlinuz-`uname -r` /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/`uname -m`/kernel
cd -
cd /tmp/xcatgenesis.$$
tar jcf ~/rpmbuild/SOURCES/xCAT-genesis-`uname -m`.tar.bz2 opt
rpmbuild -ba $DIR/xCAT-genesis.spec