From 50d23e2fd56591446dfa5dca442b4c19f296e6ce Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 14 Jul 2017 07:05:45 +0200 Subject: [PATCH] Fix #194: ismount() fails on symlinks --- pmb/helpers/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/helpers/mount.py b/pmb/helpers/mount.py index c8e3ed0a..d6042902 100644 --- a/pmb/helpers/mount.py +++ b/pmb/helpers/mount.py @@ -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()