open-power / HTX

Apache License 2.0
14 stars 19 forks source link

HTX ver command doesn't show proper Linux distro version #121

Closed vipinparashar closed 6 years ago

vipinparashar commented 6 years ago

HTX ver command doesn't show complete Linux distro version and also displays garbage too at times along with relevant info.

For SLES15:

  ver 1.5.4.3 - OS, HTX, Firmware and Machine details
                       OS: GNU/Linux
               OS Version:  Welcome to SUSE Linux Enterprise Server 15 RC1 (ppc64le) - Kernel \r (\l).   
                                  eth0: \4{eth0} \6{eth0}                              <-----
                                                                                                 <--- Garbage display
           Kernel Version: 4.12.14-13.5-default

SLES 12 SP3:

   ver 1.5.4.3 - OS, HTX, Firmware and Machine details

                       OS: GNU/Linux
               OS Version: SUSE Linux Enterprise Server 12 (ppc64le)  <--- Only SLES12 displayed
                                                                                                           SP3 is missing
           Kernel Version: 4.4.103-6.38-default

Ubuntu 18.04

   ver 1.5.4.5 - OS, HTX, Firmware and Machine details

                       OS: GNU/Linux
               OS Version: Ubuntu Bionic Beaver (development branch) \n \l   <-- Only Code name displayed
           Kernel Version: 4.15.0-12-generic
vipinparashar commented 6 years ago

Pull request #122 fixes this issue. https://github.com/open-power/HTX/pull/122