Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Check mount points for existing snapshot directory #537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Brorean
Copy link

@Brorean Brorean commented Dec 23, 2019

This proposed fix could fix issues #83, #227, #535, and maybe #536; where bind mounts cause Timeshift to use a different directory.

In unlock_and_mount_device function when there are multiple mount points for a device; loop through each mount point and check if there is already a snapshot directory (<mount_point>/timeshift/snapshots). If the directory exists then use that mount point. If the snapshot directory doesn't exits then it uses the first mount point; which is what is currently does.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant