mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Extend cpictl to report Linux distribution type and version information, and another sublevel of Linux kernel version data via the system level field of the SCLP CPI firmware interface. This data is intended to be decoded by the IBM Z HMC web-UI to provide users a more detailed view of Linux software levels installed in LPARs. For this purpose, the format of the 64-bit system level word is extended in a compatible way, that is, the meaning of existing fields remains unchanged while additional data is added to previously unused fields. The new format is defined as 0xabccddeeeeffgghh, where: - a=statistics flags - b=distro id - c=distro major version - d=distro minor version(s) - e=kernel sublevel 2 - f=kernel version - g=kernel patchlevel - h=kernel sublevel 1 This format will be automatically reported for supported distributions based on data from /etc/os-release. As before, users can override the data by specifying a custom system level word in /etc/sysconfig/cpi. To support manual specification of new data fields, the format of cpictl's -L command line option and the CPI_SYSTEM_LEVEL environment variable are extended as follows: - 0x<level> Specifies the system level as 64 bit hex value - [[[flags:]distro_id:distro_version:]kernel_version] Specifies the system level as list of optional fields. Any field that is omitted is initialized with automatically determined values. Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Acked-by: Viktor Mihajlovski <mihajlov@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>