Skip to content

[lxc-android] Fix added support for process accounting.#12

Open
Bettehem wants to merge 1 commit into
droidian:droidianfrom
Bettehem:droidian
Open

[lxc-android] Fix added support for process accounting.#12
Bettehem wants to merge 1 commit into
droidian:droidianfrom
Bettehem:droidian

Conversation

@Bettehem

Copy link
Copy Markdown
Contributor

As explained in the lxc.mount.entry section in the lxc documentation: "Moreover lxc supports mount propagation, such as rshared or rprivate, and adds three additional mount options. optional don't fail if mount does not work."

So if we just use the optional mount option, it doesn't fail on cgroupv1 systems:
lxc.mount.entry = none acct cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot,optional 0 0

Tested this on my OnePlus 3T, which doesn't have cgroupv2

On systems without cgroupv2, having this last lxc.mount.entry would
prevent the system from booting properly. Making it optional solves such
problems.
@g7

g7 commented Jan 28, 2025

Copy link
Copy Markdown
Member

ah awesome, that's even better than adding a new hook :) Thanks

@bellegarde-c could you check if it works as expected on miatoll?

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.

2 participants