-
Notifications
You must be signed in to change notification settings - Fork 52
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
Porting persistent-storage.sh
to Golang?
#250
Comments
Hey @s3rj1k, I wrote that, trying to emulate systemd udev, so in a good day, one could use a by-id entry obtained on a systemd-based OS in HookOS (Alpine). I wouldn't be against porting it, but I do have to warn that the reference implementation should be systemd udev, not this bash script. Also, what is to be gained from the port? Thanks |
udev is very shifty, rules change a lot and there are a lot of cases that are out of scope for general plain disk discovery
to establish baseline code that can be extendable and covered by unit-tests
Is also an udev construct that does not really relate to real serial number of device (I agree that it should be emulated) |
HW makers have some very creative (and dubious) ideas when setting their serial numbers. Eg embedding nulls, or worse, embedding literal backslash-zero's in serial numbers; systemd-udev handles those specially. My use-case here is getting my hands on a machine running some systemd OS, looking into |
Was wondering if in case someone proposes a PR with a port of
hook-mdev/persistent-storage.sh
to Golang, will it be considered?The text was updated successfully, but these errors were encountered: