aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py3
-rw-r--r--sos/sosreport.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index a7c0146b..a06c0b1b 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -271,6 +271,9 @@ class Plugin(object):
# adjust the target used inside the report to always be relative
if os.path.isabs(linkdest):
reldest = os.path.relpath(linkdest, os.path.dirname(srcpath))
+ # trim leading /sysroot
+ if self.use_sysroot():
+ reldest = reldest[len(os.sep + os.pardir):]
self._log_debug("made link target '%s' relative as '%s'"
% (linkdest, reldest))
else:
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 27c756f7..567e3dfb 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1226,6 +1226,7 @@ class SoSReport(object):
self.ui_log.error(" %s while setting up plugins"
% e.strerror)
self.ui_log.error("")
+ self._exit(1)
if self.raise_plugins:
raise
self._log_plugin_exception(plugname, "setup")