hello I’m curious about a change that happen a couple of days ago on ohai : https://github.com/chef/ohai/commit/947a97d47daa1dce6aa7b91f2057b15451805b25 I wonder why this is statically baked in ruby instead of being computed from infos available in the /etc/os-release file ? ID_LIKE should have the info we need ? I understand that this would put fedora in the same basket and clearly it’s not what ohai wants but I’m not sure I fully understand why
I don’t get your point here
I was wondering why the plateform is reported in ohai following a static list instead of being sourced in /etc/os-release. I think part of the explanation has to do with fedora but I dont get why fedora shouldn’t be considered as a rhel like system
even shorter : why do we need an update to ohai for it to say that rocky is rhel based when the info can be computed from /etc/os-release
You’re looking at the platform_family helper in this commit, which say this platform extracted from os-release when it exists belong to the rhel family
And storing that as an ohai attribute means a read from memory instead of opening the file to compute it on each need, which can be super long when you have dozens of calls in a run