mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 21:39:06 +00:00
* Add functionality for etcd snapshot/restore to and from S3 compatible backends. * Update etcd restore functionality to extract and write certificates and configs from snapshot.
11 lines
183 B
Go
11 lines
183 B
Go
// +build linux
|
|
|
|
package xid
|
|
|
|
import "io/ioutil"
|
|
|
|
func readPlatformMachineID() (string, error) {
|
|
b, err := ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
|
|
return string(b), err
|
|
}
|