Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix cgroups detection #134

Merged
merged 2 commits into from
Mar 16, 2023
Merged

Conversation

agners
Copy link
Member

@agners agners commented Mar 16, 2023

Fixes: #107

@agners
Copy link
Member Author

agners commented Mar 16, 2023

FWIW, the const definition with 0 makes all three consts 0:

const (
	CGroupUnknown CGroupVersion = 0
	CGroupV1
	CGroupV2
)

So this lead to the situation where always CGroupV2 code path has been used 🥶 .

Using iota identifier tells go to increment each value by 1 (essential create an enum).

@pvizeli pvizeli merged commit 957be69 into home-assistant:main Mar 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Campatibility issue with RaspberryMatic
2 participants