2012-12-04 18:57:37 +00:00
|
|
|
DIR=`dirname $0`
|
|
|
|
mkdir -p /usr/share/dracut/modules.d/97xcat
|
|
|
|
cp $DIR/* /usr/share/dracut/modules.d/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.$$
|
2012-12-06 14:42:05 +00:00
|
|
|
tar jcf ~/rpmbuild/SOURCES/xCAT-genesis-base-`uname -m`.tar.bz2 opt
|
|
|
|
rpmbuild -ba $DIR/xCAT-genesis-base.spec
|
|
|
|
rm -rf /usr/share/dracut/modules.d/97xcat
|