File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33echo " 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
88echo " Applying patches"
99HOST_UUID=$( xe host-list name-label=${HOSTNAME} --minimal)
@@ -52,8 +52,12 @@ for patch in ${XEN_ALL_PATCHES}; do
5252done
5353
5454echo " 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
You can’t perform that action at this time.
0 commit comments