From dd3545d945eea9a4469726d8cf0d93383d9a5cdb Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 16 Aug 2012 06:40:59 +0000 Subject: [PATCH] fix bug 3558059. If the os was updated from sles11 sp1 to sless11 sp2, and the mlnx-ofa_kernel-kmp-default could not be installed successfully. enhance the mlnxofed_ib_install scripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../xcat/ib/scripts/Mellanox/mlnxofed_ib_install | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install index 0a5767d89..d4fb4cd55 100755 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install @@ -56,19 +56,26 @@ if [ $OS != "AIX" ]; then 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 + #mount -t devtmpfs /dev $installroot/dev/ + #mount -t sysfs /sys $installroot/sys + #mount -t proc /proc $installroot/proc + mount --bind /dev $installroot/dev/ + mount --bind /sys $installroot/sys + mount --bind /proc $installroot/proc + chroot $installroot rpm -e --noscripts --allmatches mlnx-ofa_kernel-kmp-default 2>/dev/null chroot $installroot perl -x /tmp/ofed_install/ofed/mlnxofedinstall --without-32bit --force rm -rf $installroot/tmp/ofed_install umount $installroot/dev/ umount $installroot/sys + umount $installroot/proc 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