aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-01-26 00:00:08 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-07-08 17:05:21 +0100
commite18d25a0e0c10a2702893f7bae2530dc2a41a394 (patch)
tree88e8546cba96baa99c1333bd3b65a3b62f45a584
parent5ae1b392d1f081bcb43e91a572342d6f02e4728d (diff)
downloadsos-e18d25a0e0c10a2702893f7bae2530dc2a41a394.tar.gz
[cluster] handle crm_report with --sysroot
Don't attempt to run crm_report in the chroot if tmp is not a subdirectory of sysroot. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/cluster.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py
index ea5dbae7..f52f1544 100644
--- a/sos/plugins/cluster.py
+++ b/sos/plugins/cluster.py
@@ -120,8 +120,9 @@ class Cluster(Plugin, RedHatPlugin):
self._log_warn("scrubbing of crm passwords has been disabled:")
self._log_warn("data collected by crm_report may contain"
" sensitive values.")
- self.add_cmd_output('crm_report %s -S -d --dest %s --from "%s"'
- % (crm_scrub, crm_dest, crm_from))
+ self.add_cmd_output('crm_report %s -S -d --dest %s --from "%s"' %
+ (crm_scrub, crm_dest, crm_from),
+ chroot=self.tmp_in_sysroot())
def do_lockdump(self):
if self._mount_debug():