forked from Mirror/pmbootstrap
Fix #194: ismount() fails on symlinks
This commit is contained in:
parent
63aa1eae1b
commit
50d23e2fd5
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def ismount(folder):
|
|||
Ismount() implementation, that works for mount --bind.
|
||||
Workaround for: https://bugs.python.org/issue29707
|
||||
"""
|
||||
folder = os.path.abspath(folder)
|
||||
folder = os.path.abspath(os.path.realpath(folder))
|
||||
with open("/proc/mounts", "r") as handle:
|
||||
for line in handle:
|
||||
words = line.split()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue