mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
4d1f9eda9d
* 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
|
|
}
|