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

make bind-dirs idempotent / allow re-running bind-dirs #2673

Open
adrelanos opened this Issue Mar 5, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@adrelanos
Member

adrelanos commented Mar 5, 2017

Qubes OS version:
R3.2

Affected VMs:
any Linux based


bind-dirs currently has a limitations. It is not sane to re-run sudo /usr/lib/qubes/bind-dirs.sh if the system was booted with a non-empty bind-dirs configuration. (Which is by default the case in Qubes-Whonix.) That would lead to duplicate mounts.

Quote @adrelanos:

Perhaps bind-dirs should figure out the state etc.. If already mounted, avoid duplicate mount etc.

(And if it is not possible to figure out the state - keep a state file with the state.)

Quote @marmarek:

There is mountpoint tool which can check if a directory or file is a mountpoint. That would be a first step. The second one (less important here): checking if mounted thing is a file/directory from /rw/bind-dirs.


Related source files:


Related:

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@HW42

This comment has been minimized.

Show comment
Hide comment
@HW42

HW42 May 23, 2017

//cc [...] @HW42

Seems useful. This adds a little bit complexity which is more than outweighed by the usability improvement IMO.

Did you have more than a comment about what I think about this feature in mind when CC-ing me?

HW42 commented May 23, 2017

//cc [...] @HW42

Seems useful. This adds a little bit complexity which is more than outweighed by the usability improvement IMO.

Did you have more than a comment about what I think about this feature in mind when CC-ing me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment