From e18d25a0e0c10a2702893f7bae2530dc2a41a394 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 26 Jan 2015 00:00:08 +0000 Subject: [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 --- sos/plugins/cluster.py | 5 +++-- 1 file 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(): -- cgit