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

Do not write files in user system #43

Merged
merged 1 commit into from
May 30, 2024

Conversation

Itxaka
Copy link
Contributor

@Itxaka Itxaka commented Feb 12, 2024

This stops sysinfo from writing files in the running system without telling the user about it.

A system with no machine-id is a completely valid system and can be like that at different times, like inside a container, on a first boot, in immutable systems, etc...

We should not write files in teh user system without informing them and not having a machine-id is a valid state.

Fixes: #42

This stops sysinfo from writing files in the running system without
telling the user about it.

A system with no machine-id is a completely valid system and can be like
that at different times, like inside a container, on a first boot, in
immutable systems, etc...

We should not write files in teh user system without informing them and
not having a machine-id is a valid state.

Signed-off-by: Itxaka <[email protected]>
@Itxaka
Copy link
Contributor Author

Itxaka commented Apr 15, 2024

@zcalusic any comment on this?

@zcalusic
Copy link
Owner

I agree that nowadays we probably should not tamper with the machine ID. This was added a long time ago to better support some ancient distributions that were unaware of the machine ID. However, in the meantime, we have dropped support for those, so it's okay if this workaround is removed as well.

Thank you for your contribution @Itxaka!

@zcalusic zcalusic merged commit 94e6a5e into zcalusic:master May 30, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

If there is no machine-id, this library should not create it
2 participants