projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9271ce
)
fix relative symbolic link in bind mount
author
Gui Chen
<gui.chen@intel.com>
Wed, 15 May 2013 12:11:36 +0000
(08:11 -0400)
committer
Gui Chen
<gui.chen@intel.com>
Wed, 15 May 2013 12:11:36 +0000
(08:11 -0400)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/fs_related.py
patch
|
blob
|
history
diff --git
a/mic/utils/fs_related.py
b/mic/utils/fs_related.py
index 86f947bfb1976f21efc66f919466fefa6a14958e..817a016748c62e06a6ba6ba8c310e0b52742bda0 100644
(file)
--- a/
mic/utils/fs_related.py
+++ b/
mic/utils/fs_related.py
@@
-113,6
+113,8
@@
class BindChrootMount:
self.orig_src = self.src = src
if os.path.islink(src):
self.src = os.readlink(src)
+ if not self.src.startswith('/'):
+ self.src = os.path.abspath(os.path.join(src, self.src))
if not dest:
dest = self.src