The preflight script uses 'free' command to retrieve system memory values. The response format of the command is changed in CentOS 7. This fix checks the format before retrieving the values from the response. Example of free on CentOS 7: free total used free shared buff/cache available Mem: 24679696 745408 15354024 484056 8580264 23115424 Swap: 4194296 2342044 1852252 Example of free on other OS systems: free total used free shared buffers cached Mem: 132186424 85905932 46280492 1269732 1246032 48452744 -/+ buffers/cache: 36207156 95979268 Swap: 8388600 1371044 7017556 Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|