dalgibbard / citrix_xenserver_patcher

Auto / Manual Patching tool for Citrix XenServer Boxes
Do What The F*ck You Want To Public License
142 stars 45 forks source link

Use xensource-inventory file to obtain version information. #51

Closed levidehaan closed 8 years ago

levidehaan commented 8 years ago

I updated Xen after enabling base and a few other repo's in order to install glusterfs. This must have overwritten my /etc/redhat-release file, because it shows CentOS 5.11 now instead of the Xen version. There is another file that contains the full version, the /etc/xensource-inventory file. My modifications successfully use this file to obtain the version in lieu of the redhat-release file, as it appears to be unreliable as a xen version source.

dalgibbard commented 8 years ago

Implemented alternate fix, as this expected fields in /etc/xensource-inventory to be in fixed locations, which isn't necessarily the case. Pushed #52 instead - but many thanks for pointing out this issue none-the-less!