mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
CoreOS uses VARIANT_ID instead of a unique ID in /etc/os-release. Extend distro detection to identify RHCOS, other CoreOS variants may be added later if needed. RHCOS is showing in HMC as RHEL, because `system_level' is: ``` [core@cosa-devsh ~]$ cat /sys/firmware/cpi/system_level 0x010906023a050e00 ``` But should be: ``` [core@cosa-devsh ~]$ cat /sys/firmware/cpi/system_level 0x070906023a050e00 ``` Issue: https://jsw.ibm.com/browse/OCPVIP-1471 Closes: https://github.com/ibm-s390-linux/s390-tools/pull/199 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com> Reviewed-by: Marc Hartmayer <marc@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>