mirror of
https://github.com/luxfi/kms.git
synced 2026-10-30 16:23:36 +00:00
Squashes all pre-rewrite history into a single root commit. Previous tree: - 14506 commits including upstream Infisical fork history - Multiple merge chains carrying pre-purge content Force-rewrite per disk-space reclamation discipline. GHCR images (1.9.9, 1.9.11) remain immutable; their git lineage is no longer materialized.
14 lines
264 B
Go
14 lines
264 B
Go
// +build linux
|
|
|
|
package xid
|
|
|
|
import "io/ioutil"
|
|
|
|
func readPlatformMachineID() (string, error) {
|
|
b, err := ioutil.ReadFile("/etc/machine-id")
|
|
if err != nil || len(b) == 0 {
|
|
b, err = ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
|
|
}
|
|
return string(b), err
|
|
}
|