aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 7fa7ac6d..a7c0146b 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -265,7 +265,8 @@ class Plugin(object):
# the target stored in the original symlink
linkdest = os.readlink(srcpath)
dest = os.path.join(os.path.dirname(srcpath), linkdest)
- # absolute path to the link target
+ # Absolute path to the link target. If SYSROOT != '/' this path
+ # is relative to the host root file system.
absdest = os.path.normpath(dest)
# adjust the target used inside the report to always be relative
if os.path.isabs(linkdest):