The code that parses kernel version from OSRELEASE/UTSRELEASE strings
and populates the global kernel table is duplicated across the codebase
for no good reason. This commit consolidates all the duplicated parsing
code into a single method to remove the unnecessary duplicated code.
The code that parses kernel version from OSRELEASE/UTSRELEASE strings and populates the global kernel table is duplicated across the codebase for no good reason. This commit consolidates all the duplicated parsing code into a single method to remove the unnecessary duplicated code.