Open harisudarsan1 opened 1 week ago
func GetKernelVersion(kernelVersion string, procfs string) (int, string, error) helper only checks the procfs/version_signature. I have added a condition to check procfs/version
the current code falls back to get version from uname.. what's the benefit of reading /proc/version? is there some scenario where current code is broken/gives bad result?
@olsajiri I included /proc/version
as an additional check because it is available in most Linux distributions, whereas /proc/version_signature
is specific to Ubuntu-based derivatives. However, the version still needs to be extracted from the contents of /proc/version
.
But I think if we are anyways falling back to uname then there is no need of /proc/version
Description
Previously func GetKernelVersion(kernelVersion string, procfs string) (int, string, error) helper only checks the procfs/version_signature. I have added a condition to check procfs/version if first check fails.