Bug 225529 - sysutils/py-salt: Add patches to get the hostuuid more reliably
Summary: sysutils/py-salt: Add patches to get the hostuuid more reliably
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: FreeBSD Ports Bugs (Mailing List)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-29 11:25 UTC by Fabian Keil
Modified: 2018-01-29 11:25 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (christer.edwards)


Attachments
sysutils/py-salt: Add patches to get the hostuuid more reliably (3.60 KB, patch)
2018-01-29 11:25 UTC, Fabian Keil
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Keil 2018-01-29 11:25:04 UTC
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
FreeBSD-based systems

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.