aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/sosreport.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py
index 47eddc97..580b5bd7 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -651,6 +651,7 @@ class SoSReport(object):
self.archive = None
self.tempfile_util = None
self._args = args
+ self.sysroot = "/"
try:
import signal
@@ -681,6 +682,10 @@ class SoSReport(object):
self.tempfile_util = TempFileUtil(self.tmpdir)
self._set_directories()
+ # set alternate system root directory
+ if self.opts.sysroot:
+ self.sysroot = self.opts.sysroot
+
def print_header(self):
self.ui_log.info("\n%s\n" % _("sosreport (version %s)" %
(__version__,)))
@@ -693,6 +698,7 @@ class SoSReport(object):
'tmpdir': self.tmpdir,
'soslog': self.soslog,
'policy': self.policy,
+ 'sysroot': self.sysroot,
'verbosity': self.opts.verbosity,
'xmlreport': self.xml_report,
'cmdlineopts': self.opts,