2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Add some error checking and also some additional dependencies

to try to make it easier to build the genesis-base on newly installed
build machines
This commit is contained in:
Victor Hu 2016-07-22 10:57:43 -04:00
parent 0c9cb53fd4
commit e9ad97b2d6
2 changed files with 12 additions and 1 deletions

View File

@ -170,10 +170,21 @@ if [ $BUILDARCH = "ppc64" ]; then
else
dracut -m "xcat base" -f /tmp/xcatgenesis.$$.rfs $KERNELVERSION
fi
if [ $? -ne 0 ]; then
echo "ERROR - creating the initramfs, please correct the issues and try again"
exit 1
fi
echo Expanding the initramfs into /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/$BUILDARCH/fs ...
cd /tmp/xcatgenesis.$$/opt/xcat/share/xcat/netboot/genesis/$BUILDARCH/fs
zcat /tmp/xcatgenesis.$$.rfs|cpio -dumi
if [ $? -ne 0 ]; then
echo "ERROR - expanding the initramfs, please correct the issues and try again"
exit 1
fi
# add the kernel
if [ "$HOSTOS" = "mcp" ]; then
echo Adding kernel /boot/vmlinuz-* ...

View File

@ -4,7 +4,7 @@ BuildArch: noarch
Release: snap%(date +"%Y%m%d%H%M")
Epoch: 1
AutoReq: false
Requires: ipmitool screen btrfs-progs lldpad rpm-build compat-libstdc++-33
Requires: ipmitool screen btrfs-progs lldpad rpm-build compat-libstdc++-33 mstflint xfsprogs nc reiserfs-utils
Prefix: /opt/xcat
AutoProv: false