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

219 no bindmount leak #252

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

219 no bindmount leak #252

wants to merge 2 commits into from

Conversation

JonathonReinhart
Copy link
Owner

No description provided.

This works if scubaroot = /home/$USER: is_bind_mount() detects the bind mount
because we're trying to mount the /jreinhart subdirectory of the /home/
mount:

  scubainit: ERROR - Error creating home dir: "/home/jreinhart" is on a bind-mount: /dev/mapper/magnum--vg-home[/jreinhart]

But it fails for scubaroot = /home: is_bind_mount() sees root="/" and
returns false.

I think there is simply no way to reliably detect a bind mount!

So now we might be to the point of either passing the list of
bind-mount volumes from scuba to scubainit, or by checking for this
situation in scuba instead.
Copy link

github-actions bot commented Apr 8, 2024

Test Results

    6 files      6 suites   2m 1s ⏱️
  177 tests   175 ✅  2 💤 0 ❌
1 062 runs  1 050 ✅ 12 💤 0 ❌

Results for commit 6f50a85.

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.

None yet

1 participant