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

Backports (5.0-edge) #385

Merged
merged 2 commits into from Mar 18, 2024
Merged

Backports (5.0-edge) #385

merged 2 commits into from Mar 18, 2024

Conversation

tomponline
Copy link
Member

No description provided.

It may happen that the shmounts setup failed for whatever reason, in which case
the fallback path mounts a tmpfs at /var/snap/lxd/shmounts. Make sure to clean
it up during remove if needed.

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
(cherry picked from commit 3fdcce0)
Make sure to terminate the forked off mount namespace capture helper, otherwise
the child will continue execution of the remaining setup code and thus cause a
race with the parent which occasionally manifests itself with the
/var/snap/lxd/common/shmounts being missing from the parennt's mount namespace
after it has switched back to the moutn ns of pid 1.

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
(cherry picked from commit ab8c018)
@tomponline tomponline merged commit a7e9deb into canonical:5.0-edge Mar 18, 2024
2 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
3 participants