1735e36913
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14576 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
14 lines
631 B
Plaintext
Executable File
14 lines
631 B
Plaintext
Executable File
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.$$
|
|
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
|