Created attachment 190153 [details]
sysutils/py-salt: Add patches to get the hostuuid more reliably
The attached patch lets _hw_data() validate the kenv output on
Previously systems running in bhyve without smbios had a couple
of grains with the value 'kenv: unable to get ...'.
With the patch the kenv output is only used if it looks legit.
Additionally _hw_data() is modified to fallback to the hostuuid sysctl
when the FreeBSD-based system doesn't have a hardware uuid.
For systems running in bhyve there may not be a "hardware" uuid
but the hostuuid rc.d script whil generate a hostuuid from other
system properties and populate kern.hostuuid with it.
I'll approve these patches if they have also been submitted upstream to SaltStack.