fixed the point 2 of defect 3513208, when run genimage with mlnxofed_ib_install twice for sles11sp1, the genimage will fail. A special case for sles11sp1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c791b1d857
commit
d7011e64bb
@ -53,13 +53,22 @@ if [ $OS != "AIX" ]; then
|
||||
if [ $NODESETSTATE == "genimage" ]; then
|
||||
# Being called from <image>.postinstall script
|
||||
# Assume we are on the same machine
|
||||
#if [[ $OS = sles* ]] || [[ $OS = suse* ]] || [[ -f /etc/SuSE-release ]]; then
|
||||
# For SLES, assume zypper is available on the system running genimage
|
||||
if [[ $OS = sles* ]] || [[ $OS = suse* ]] || [[ -f /etc/SuSE-release ]]; then
|
||||
mkdir $installroot/tmp/ofed_install
|
||||
cp -r $OFED_DIR $installroot/tmp/ofed_install/
|
||||
mount -t devtmpfs /dev $installroot/dev/
|
||||
mount -t sysfs /dev $installroot/sys
|
||||
#chroot $installroot rpm -e --noscripts --allmatches mlnx-ofa_kernel-kmp-default
|
||||
chroot $installroot perl -x /tmp/ofed_install/ofed/mlnxofedinstall --without-32bit --force
|
||||
rm -rf $installroot/tmp/ofed_install
|
||||
umount $installroot/dev/
|
||||
umount $installroot/sys
|
||||
else
|
||||
mkdir $installroot/tmp/ofed_install
|
||||
cp -r $OFED_DIR $installroot/tmp/ofed_install/
|
||||
chroot $installroot perl -x /tmp/ofed_install/ofed/mlnxofedinstall --without-32bit --force
|
||||
rm -rf $installroot/tmp/ofed_install
|
||||
#fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user