forked from projectatomic/atomic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscontainers: fix detection of repo location
Improve the detection of the repo being on the same file system as the checkout path by trying to link a file. This is necessary since on a bind mount the st_dev for the two directories is the same, but hardlinks will still fail with EXDEV. Also, change the test in _canonicalize_location to check that on an Atomic Host /sysroot/ostree/deploy/*/var/* and /var/* have the same st_dev and st_ino. It is necessary so that files created under /sysroot are visible in /var, and in this case it is fine the two locations are on different file systems. Signed-off-by: Giuseppe Scrivano <[email protected]> Closes: projectatomic#1133 Approved by: ashcrow
- Loading branch information
Showing
1 changed file
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters