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

storaged: btrfs helper cleanups #21504

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Jan 10, 2025

I don't yet understand enough of what's going on here to eliminate all persistent mounts (in particular, the monitor ones), but this should at least improve the situation.

This shouldn't be on persistent storage -- after a reboot all the mounts
are gone, so the database should not survive that either.

Use `os.path.join()` for a slightly more regular and cleaner path
building.

Move the database on package upgrades, to not break new cockpit sessions
in the current boot.
This will re-use already existing mounts from monitoring, but avoid
extra additional mounts to become visible in the file system for
`btrfs-tool poll` commands.

Move the `--make-rprivate` into `unshare_mounts()` to avoid repetition.
@martinpitt martinpitt changed the title storaged: Move /var/lib/cockpit/btrfs to /run storaged: btrfs helper cleanups Jan 10, 2025
@martinpitt martinpitt marked this pull request as ready for review January 10, 2025 14:25
@martinpitt martinpitt requested a review from mvollmer January 10, 2025 14:26
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.

1 participant