build xcat-genesis on debian

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-01-06 03:27:26 +00:00
parent 424b8b5378
commit 29b77e066a

View File

@ -17,7 +17,15 @@ build:
mkdir -p /usr/share/dracut/modules.d/97xcat
cp -r * /usr/share/dracut/modules.d/97xcat
rm -rf /usr/share/dracut/modules.d/97xcat/debian
mv /usr/share/dracut/modules.d/97xcat/install.ubuntu /usr/share/dracut/modules.d/97xcat/install
version=`head -n 1 /etc/issue | awk '{print $$1}'`;if [ $$version = 'Debian' ]; then\
mkdir -p /usr/lib/dracut/modules.d/97xcat;\
cp -r * /usr/lib/dracut/modules.d/97xcat;\
rm -rf /usr/lib/dracut/modules.d/97xcat/debian;\
mv /usr/share/dracut/modules.d/97xcat/install.debian /usr/share/dracut/modules.d/97xcat/install; \
mv /usr/lib/dracut/modules.d/97xcat/install.debian /usr/lib/dracut/modules.d/97xcat/install; \
else\
mv /usr/share/dracut/modules.d/97xcat/install.ubuntu /usr/share/dracut/modules.d/97xcat/install;\
fi
mkdir -p $(buildroot)/opt/xcat/share/xcat/netboot/genesis/$(DEB_BUILD_GNU_CPU)/fs
dracut -m "xcat base" -f /tmp/xcatgenesis.tmp.rfs
(cd $(buildroot)/opt/xcat/share/xcat/netboot/genesis/$(DEB_BUILD_GNU_CPU)/fs/ && zcat /tmp/xcatgenesis.tmp.rfs|cpio -dumi)