saltstack/salt — pull request #2538 by thekuffs (2012-11-12 20:18:45+00:00)
Title: Strip the word 'Linux' for os grain

We are seeing a number of issues crop up where the presence of 'Linux' in the 'os' grain causes problems for the family mapper and dependent module selection algorithms.

This pull request strips the word 'Linux' from the 'osfullname' grain before attempting to find another name in `_OS_NAME_MAP`, or defaulting to the stripped name. This should reduce the number of bugs we are seeing that require another addition to the map.

This patch is in response to #2537.

Please carefully consider this pull request. I would be best if this could be tested on a couple different platforms before acceptance.