Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD uses machine-id #9

Open
jungle-boogie opened this issue Jul 15, 2019 · 3 comments
Open

OpenBSD uses machine-id #9

jungle-boogie opened this issue Jul 15, 2019 · 3 comments

Comments

@jungle-boogie
Copy link

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

@CyrilBrulebois
Copy link

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.

@rnagy
Copy link

rnagy commented Mar 26, 2021

OpenBSD does not use machine-id. /etc/machine-id comes from dbus.

@jungle-boogie
Copy link
Author

@rnagy,

Oh, I'm sorry! thanks for correcting me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants