OpenBSD uses machine-id
jungle-boogie opened this issue · comments
jungle-boogie commented
Hi,
This originated here:
schollz/croc#137
Your readme states:
BSD uses /etc/hostid
However, OpenBSD uses /etc/machine-id:
$ ls -l /etc/machine-id
-rw-r--r-- 1 root wheel 33 May 1 2018 /etc/machine-id
I don't know go, so I don't know where to fit this update into your file:
https://github.com/denisbrodbeck/machineid/blob/master/id_bsd.go
Cyril Brulebois commented
Hi, just passing through before filing my own issue…
Maybe you could reuse the logic from id_linux.go
, trying to read a file and falling back to another one if the first attempt doesn't succeed?
Cheers,
Cyril.
Robert Nagy commented
OpenBSD does not use machine-id. /etc/machine-id comes from dbus.
jungle-boogie commented
Oh, I'm sorry! thanks for correcting me.