2ae9261bbb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
13 lines
579 B
Plaintext
Executable File
13 lines
579 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-`uname -m`.tar.bz2 opt
|
|
rpmbuild -ba $DIR/xCAT-genesis.spec
|