Skip to content

Commit e2aacbf

Browse files
committed
Make exception for HPSA driver on G7
1 parent 9d50d9d commit e2aacbf

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

xenserver_post_empty_script.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo "This is the post_empty script you could customise."
44

55
#echo "Downgrading openvswitch RPM to the XenServer default"
6-
#rpm -Uvh http://10.200.10.10/software/xenserver/openvswitch-1.4.6-143.9926.i386.rpm --force --nodeps
6+
rpm -Uvh http://10.200.10.10/software/xenserver/openvswitch-1.4.6-143.9926.i386.rpm --force --nodeps
77

88
echo "Applying patches"
99
HOST_UUID=$(xe host-list name-label=${HOSTNAME} --minimal)
@@ -52,8 +52,12 @@ for patch in ${XEN_ALL_PATCHES}; do
5252
done
5353

5454
echo "Upgrading drivers"
55-
yum -y install bnx2x-* fnic* qla2* glnic* qlge* tg3* hpsa* openvswitch-modules-xen*
56-
yum -y upgrade nicira-ovs-hypervisor-node
55+
yum -y install bnx2x-* fnic* qla2* glnic* qlge* tg3* openvswitch-modules-xen*
5756

58-
echo "Fixing openvswitch installation back to the newest"
59-
yum reinstall openvswitch
57+
SYSTEM_HARDWARE=$(dmidecode -s system-product-name | grep -v "#")
58+
if [[ "${SYSTEM_HARDWARE}" == "ProLiant DL380 G7" ]]; then
59+
echo "Skip HPSA on HP ProLiant DL380 G7 or else the box won't boot"
60+
else
61+
yum -y install hpsa*
62+
fi
63+
yum -y upgrade nicira-ovs-hypervisor-node

0 commit comments

Comments
 (0)